Hi All,<br><br>I am trying to run the asterisk CLI commands from php.<br>Some thing like "asterisk -rx reload".<br>But it is not working, where as when I try to run <br>linux "ls" command it works fine.<br>
<br>below is sample php code which I am trying to run.<br><br>$command = "sudo asterisk -rx reload";<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>