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&#39;s say &quot;show hints&quot; and get the output back to the script? I have tried <br>
<br>$agi-&gt;exec(&quot;show hints&quot;); <br><br>but I am getting the output below on the cli debug<br><br>AGI Rx &lt;&lt; EXEC show hints<br>AGI Tx &gt;&gt; 200 result=-2<br>AGI Rx &lt;&lt; VERBOSE &quot;EXEC show hints  returned -2&quot; 1<br>
AGI Tx &gt;&gt; 200 result=1<br><br clear="all">From My understanding -2 means &quot;failure to find application&quot;<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>