title: Exec function not working in AGI Script:
body: <p>I am calling AGI SCRIPT from my dialplan and using exec function to call sh script but it is not working. Why ? Is it possible to call sh script using agi script ?</p>
  
  <pre><code>$agi-&gt;exec("sh count_length.sh '/SOUND/shakti.gsm'" );
  </code></pre>