Thanks for this explanation Dany! Regards, Zohair Raza
On Mon, Feb 6, 2012 at 10:11 PM, Danny Nicholas <da...@debsinc.com> 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:* asterisk-users-boun...@lists.digium.com [mailto: > asterisk-users-boun...@lists.digium.com] *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