\n\n"; $fp = event_socket_create($host, $port, $password); $cmd = "api sofia status"; $response = event_socket_request($fp, $cmd); echo "sofia status \n"; echo " \n"; echo $response; echo "\n"; fclose($fp); echo " \n\n"; $fp = event_socket_create($host, $port, $password); $cmd = "api sofia status profile internal"; $response = event_socket_request($fp, $cmd); echo "sofia status profile internal \n"; echo " \n"; echo $response; echo "\n"; fclose($fp); echo " \n\n"; $fp = event_socket_create($host, $port, $password); $cmd = "api sofia status profile external"; $response = event_socket_request($fp, $cmd); echo "sofia status profile external \n"; echo " \n"; echo $response; echo "\n"; fclose($fp); echo " \n\n"; $fp = event_socket_create($host, $port, $password); $cmd = "api status"; $response = event_socket_request($fp, $cmd); echo "status \n"; echo " \n"; echo $response; echo "\n"; fclose($fp); echo " \n\n"; $fp = event_socket_create($host, $port, $password); $cmd = "api show channels"; $response = event_socket_request($fp, $cmd); echo "show channels \n"; echo " \n"; echo $response; echo "\n"; /* $response = "
|