<div dir="ltr">Hi All, <div><br></div><div>I want to play a file in agi but dont want to answer the call</div><div><br></div><div>I am dialing through sip phone and running asterisk 1.8.6,</div><div><br></div><div>I tried following with no luck</div>

<div><div><br></div><div>$agi-&gt;exec(&quot;Progress&quot;);</div><div>$agi-&gt;exec(&quot;Playback $filetoplay,noanswer&quot;);</div></div><div>$agi-&gt;hangup();</div><div><br></div><div>When I dial I can&#39;t hear the audio but if I answer the call or remove noanswer argument I can hear the audio.</div>

<div><br></div><div>phpAGI&#39;s stream_file didn&#39;t help either. </div><div><br></div><div>I ended up with ResetCDR() before hangup to reset billsec, duration and disposition but don&#39;t want to do it this way.</div>

<div><br></div><div>What could be the problem?</div><div><br></div><div>From Voip-info.org :</div><div><strong style="font-family:Verdana,Geneva,Arial,Helvetica,sans-serif;font-size:12px;background-color:rgb(255,255,255)">noanswer</strong><span style="font-family:Verdana,Geneva,Arial,Helvetica,sans-serif;font-size:12px;background-color:rgb(255,255,255)">: Play the sound file, but don&#39;t answer the channel first (if hasn&#39;t been answered already). Not all channels support playing messages while still on hook.</span><br style="font-family:Verdana,Geneva,Arial,Helvetica,sans-serif;font-size:12px;background-color:rgb(255,255,255)">

</div><div><br></div><div>Is it because the channel is not supported?</div><div><br></div><div><br></div><div>Regards,</div><div><div dir="ltr">Zohair Raza<div><br></div><div><br></div></div>
</div></div>