예제 #1
0
 function restartAsterisk()
 {
     global $config;
     $myAsterisk = new Asterisk();
     $myAsterisk->config['asmanager'] = $config['asterisk'];
     $res = $myAsterisk->connect();
     $myAsterisk->Command(" restart now ");
     $myAsterisk->disconnect();
     return;
 }
예제 #2
0
 function reloadAsterisk()
 {
     global $config;
     $myAsterisk = new Asterisk();
     $myAsterisk->config['asmanager'] = $config['asterisk'];
     $res = $myAsterisk->connect();
     $r = $myAsterisk->Command(" reload ");
     $myAsterisk->disconnect();
     return $r;
 }