[asterisk-users] Playback with noanswer in AGI

Zohair Raza engineerzuhairraza at gmail.com
Mon Feb 6 12:05:32 CST 2012


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