Exemple #1
1
<?php

$api = new floAPI($voip->config['voip_as_login'], $voip->config['voip_as_pass'], $voip->config['voip_as_host']);
$api->request('COMMAND', array('COMMAND' => 'core restart now'), false);
sleep(5);
$SESSION->redirect('?m=v_state');
Exemple #2
0
 function reload_dialplan()
 {
     $api = new floAPI($this->config['voip_as_login'], $this->config['voip_as_pass'], $this->config['voip_as_host']);
     $api->request('COMMAND', array('COMMAND' => 'dialplan reload'));
     $api->close();
 }