What am I doing wrong? -- Best Regards, James Mutuku Ndeti Agile Systems Limited +254722490994 www.agile.co.ke mutuku.wordpress.com Has your organization implemented a customer relationship management (CRM)system? visit http://www.agile.co.ke/crm.php and find out how our CRM can help you achieve better customer satisfaction and sales --00163641781f61356e0472a6f49a Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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=3D-2<br>AGI Rx << VERBOSE "EXEC show hints=A0 returned -2" 1<br> AGI Tx >> 200 result=3D1<br><br clear=3D"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=3D"http://www.agile.co.ke">www.agile.co.ke</a><br><a href=3D"http://mutuku.wordpress.com">mutuku.wordpress.com</a><br><br>Has your organization implemented a customer relationship management (CRM)system? visit <a href=3D"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> --00163641781f61356e0472a6f49a--