KstychPAGI.php 606 Bytes
<?php namespace App\Console\Commands;

use Illuminate\Console\Command;

use App\Jobs\KPAGIListen;

class KstychPAGI extends Command {

	/**
	 * The console command name.
	 *
	 * @var string
	 */
	protected $signature = 'KstychPAGI';

	/**
	 * The console command description.
	 *
	 * @var string
	 */
	protected $description = 'Daemon to Listen to Asterisk';

	/**
	 * Execute the console command.
	 *
	 * @return mixed
	 */
	public function handle()
	{
		$agi = \PAGI\Client\Impl\ClientImpl::getInstance();
		$kpagi = new KPAGIListen(array('pagiClient' => $agi));
		$kpagi->init();
		$kpagi->run();
	}

}