Hey Danny,<div><br></div><div>I've this thing exactly running and working as Zohair mentioned! i.e I do not answer() the call rather put a progress() and soon after that playing back the sound file from playback with noanswer and then I get the file streaming as 183-Session progress file. </div>
<div><br></div><div>I do understand that playing any sound file before establishing any audio session between two end point will result in no-adio from playback() BUT the combination of progress() and playback(,noanswer) works fine for me.</div>
<div><br></div><div>What I think the issue could be for Zohair is that its requesting/incoming session(carrier) isn't allowing the 183-Session progress.</div><div><br></div><div>Zohair can you do a SIP trace for this particular call along with the dialplan executing for it!?</div>
<div><br></div><div>Regards,</div><div>Sammy.<br><br><div class="gmail_quote">On Tue, Feb 7, 2012 at 11:55 AM, Zohair Raza <span dir="ltr"><<a href="mailto:engineerzuhairraza@gmail.com">engineerzuhairraza@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Thanks for this explanation Dany!<br clear="all"><div dir="ltr"><br></div><div dir="ltr">Regards,<br>Zohair Raza<div>
<br></div><div><br></div></div><div class="gmail_quote"><div><div class="h5">On Mon, Feb 6, 2012 at 10:11 PM, Danny Nicholas <span dir="ltr"><<a href="mailto:danny@debsinc.com" target="_blank">danny@debsinc.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div lang="EN-US" link="blue" vlink="purple"><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">You are mis-understanding the concept – the noanswer option is playing the file as you requested, but since you aren’t answering the call, no channel is established to actually present the sound to you.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> <a href="mailto:asterisk-users-bounces@lists.digium.com" target="_blank">asterisk-users-bounces@lists.digium.com</a> [mailto:<a href="mailto:asterisk-users-bounces@lists.digium.com" target="_blank">asterisk-users-bounces@lists.digium.com</a>] <b>On Behalf Of </b>Zohair Raza<br>
<b>Sent:</b> Monday, February 06, 2012 12:06 PM<br><b>To:</b> Asterisk Users Mailing List - Non-Commercial Discussion<br><b>Subject:</b> [asterisk-users] Playback with noanswer in AGI<u></u><u></u></span></p><div><div>
<p class="MsoNormal"><u></u> <u></u></p><div><p class="MsoNormal">Hi All, <u></u><u></u></p><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">I want to play a file in agi but dont want to answer the call<u></u><u></u></p>
</div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">I am dialing through sip phone and running asterisk 1.8.6,<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div>
<p class="MsoNormal">I tried following with no luck<u></u><u></u></p></div><div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">$agi->exec("Progress");<u></u><u></u></p></div><div>
<p class="MsoNormal">$agi->exec("Playback $filetoplay,noanswer");<u></u><u></u></p></div></div><div><p class="MsoNormal">$agi->hangup();<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p>
</div><div><p class="MsoNormal">When I dial I can't hear the audio but if I answer the call or remove noanswer argument I can hear the audio.<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div>
<div>
<p class="MsoNormal">phpAGI's stream_file didn't help either. <u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">I ended up with ResetCDR() before hangup to reset billsec, duration and disposition but don't want to do it this way.<u></u><u></u></p>
</div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">What could be the problem?<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">From Voip-info.org :<u></u><u></u></p>
</div><div><p class="MsoNormal"><strong><span style="font-size:9.0pt;font-family:"Verdana","sans-serif";background:white">noanswer</span></strong><span style="font-size:9.0pt;font-family:"Verdana","sans-serif";background:white">: Play the sound file, but don't answer the channel first (if hasn't been answered already). Not all channels support playing messages while still on hook.</span><u></u><u></u></p>
</div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">Is it because the channel is not supported?<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">
<u></u> <u></u></p></div><div><p class="MsoNormal">Regards,<u></u><u></u></p></div><div><div><p class="MsoNormal">Zohair Raza<u></u><u></u></p><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">
<u></u> <u></u></p>
</div></div></div></div></div></div></div></div><br></div></div><span class="HOEnZb"><font color="#888888">--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></font></span></blockquote></div><br></div>
<br>--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br></div>