Hi All,<br><br>I am trying to run the asterisk CLI commands from php.<br>Some thing like &quot;asterisk -rx reload&quot;.<br>But it is not working, where as when I try to run <br>linux &quot;ls&quot; command it works fine.<br>
<br>below is sample php code which I am trying to run.<br><br>$command = &quot;sudo asterisk -rx reload&quot;;<br><br>$value1 = system($command,$retval1);<br>$value2 = exec($command,$retval2);<br><br>echo $value1;<br>echo $value2;<br>
<br>can any one suggest what might be the problem and possible solution to it.<br><br>Any help is highly appreciated.<br><br>Thanks.<br>