[asterisk-users] Playback with noanswer in AGI

Zohair Raza engineerzuhairraza at gmail.com
Tue Feb 7 00:55:21 CST 2012


Thanks for this explanation Dany!

Regards,
Zohair Raza


On Mon, Feb 6, 2012 at 10:11 PM, Danny Nicholas <danny at 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-bounces at lists.digium.com [mailto:
> asterisk-users-bounces at 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20120207/6ba43a3a/attachment.htm>


More information about the asterisk-users mailing list