Hellos,<br><br>I know this might be an easy one but either way I am stuck...I need to execute asterisk cli commands using php agi and get the output via the same script.<br><br>How to I execute let's say "show hints" and get the output back to the script? I have tried <br>
<br>$agi->exec("show hints"); <br><br>but I am getting the output below on the cli debug<br><br>AGI Rx << EXEC show hints<br>AGI Tx >> 200 result=-2<br>AGI Rx << VERBOSE "EXEC show hints returned -2" 1<br>
AGI Tx >> 200 result=1<br><br clear="all">From My understanding -2 means "failure to find application"<br><br>What am I doing wrong? <br>-- <br>Best Regards,<br>James Mutuku Ndeti<br>Agile Systems Limited<br>
+254722490994<br><a href="http://www.agile.co.ke">www.agile.co.ke</a><br><a href="http://mutuku.wordpress.com">mutuku.wordpress.com</a><br><br>Has your organization implemented a customer relationship management (CRM)system? visit <a href="http://www.agile.co.ke/crm.php">http://www.agile.co.ke/crm.php</a> and find out how our CRM can help you achieve better customer satisfaction and sales<br>