[App_rpt-users] Unable to connect to remote asterisk (does /var/run/asterisk.ctl exist?)

Skyler Fennell electricity440 at gmail.com
Thu Dec 4 17:05:37 UTC 2014


I created a simple php file where anyone with the link can disconnect my nose from all links if something wrong is going on (due to the fact my node is same channel, half duplex linked, and if it was stuck on transmit, local transmissions  would double with the node)

<?php

echo "All links sucessfully disconnected from 40764, KDØWHB test1";

echo '<pre>';

// Outputs all the result of shellcommand "", and returns
// the last output line into $last_line. Stores the return value
// of the shell command in $retval.
$last_line = system('/etc/asterisk/scripts/disconnect', $retval);

// Printing additional info
echo '
</pre>
<hr />Last line of the output: ' . $last_line . '
<hr />Return value: ' . $retval;
?>

The code was found on the php website as a sample and I just changed ls to my script that works when ran from a normal shell.

Visiting kd0whb.duckdns.org/disconnect.php shows the output of "unable to connect to remote" 

Any suggestions? 

Thanks,
Skyler, KDØWHB


More information about the App_rpt-users mailing list