Hey Danny, 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.
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. What I think the issue could be for Zohair is that its requesting/incoming session(carrier) isn't allowing the 183-Session progress. Zohair can you do a SIP trace for this particular call along with the dialplan executing for it!? Regards, Sammy. On Tue, Feb 7, 2012 at 11:55 AM, Zohair Raza <[email protected]>wrote: > Thanks for this explanation Dany! > > Regards, > Zohair Raza > > > On Mon, Feb 6, 2012 at 10:11 PM, Danny Nicholas <[email protected]> wrote: > >> 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.**** >> >> ** ** >> >> *From:* [email protected] [mailto: >> [email protected]] *On Behalf Of *Zohair Raza >> *Sent:* Monday, February 06, 2012 12:06 PM >> *To:* Asterisk Users Mailing List - Non-Commercial Discussion >> *Subject:* [asterisk-users] Playback with noanswer in AGI**** >> >> ** ** >> >> Hi All, **** >> >> ** ** >> >> I want to play a file in agi but dont want to answer the call**** >> >> ** ** >> >> I am dialing through sip phone and running asterisk 1.8.6,**** >> >> ** ** >> >> I tried following with no luck**** >> >> ** ** >> >> $agi->exec("Progress");**** >> >> $agi->exec("Playback $filetoplay,noanswer");**** >> >> $agi->hangup();**** >> >> ** ** >> >> When I dial I can't hear the audio but if I answer the call or remove >> noanswer argument I can hear the audio.**** >> >> ** ** >> >> phpAGI's stream_file didn't help either. **** >> >> ** ** >> >> I ended up with ResetCDR() before hangup to reset billsec, duration and >> disposition but don't want to do it this way.**** >> >> ** ** >> >> What could be the problem?**** >> >> ** ** >> >> From Voip-info.org :**** >> >> *noanswer*: 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.**** >> >> ** ** >> >> Is it because the channel is not supported?**** >> >> ** ** >> >> ** ** >> >> Regards,**** >> >> Zohair Raza**** >> >> ** ** >> >> ** ** >> >> -- >> _____________________________________________________________________ >> -- Bandwidth and Colocation Provided by http://www.api-digital.com -- >> New to Asterisk? Join us for a live introductory webinar every Thurs: >> http://www.asterisk.org/hello >> >> asterisk-users mailing list >> To UNSUBSCRIBE or update options visit: >> http://lists.digium.com/mailman/listinfo/asterisk-users >> > > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >
-- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
