Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N
ambiorixg12 wrote:You wont be able to run such command Asterisk command from a php script executed by the apache user, in this case use AMI action and it will run fine doing Socket connection, and it will be real time adding some Jquery or Ajax auto refresh script
williamconley wrote:ambiorixg12 wrote:You wont be able to run such command Asterisk command from a php script executed by the apache user, in this case use AMI action and it will run fine doing Socket connection, and it will be real time adding some Jquery or Ajax auto refresh script
beware jquery access to ami. credentials will be exposed to the end user along with the requirement to open the port for ami access to the end user. put those together and anyone using that page can take over your system if you're not careful. Be sure you trust anyone on that page.
<html>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.0/jquery.min.js"></script>
<script>
var auto_refresh = setInterval(
function()
{
$('#loaddiv').load('call.php');
}, 1000);
</script>
<body>
<div id="loaddiv">
</div>
</body>
</html>
Users browsing this forum: No registered users and 93 guests