[asterisk-users] Playback with noanswer in AGI

Danny Nicholas danny at debsinc.com
Mon Feb 6 12:11:13 CST 2012


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?

 



More information about the asterisk-users mailing list