Hello List,<div><br></div><div>Someone please address my issue...<br><br><div class="gmail_quote">On Thu, May 24, 2012 at 2:08 PM, Ashish Agarwal <span dir="ltr"><<a href="mailto:ashishag67@gmail.com" target="_blank">ashishag67@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<div><br></div><div>I am trying to achieve call record file and play the file to the user using phpagi script.</div>
<div><br></div><div>I am using the following code</div><div><br></div><div>$rand="/var/sounds/145712900";</div>
<div><br></div><div>$agi->record_file($rand, "gsm", "0123456789*#", -1, 0, true, 0);</div><div><br></div><div>also tried</div><div><br></div><div>$agi->record_file($rand, "wav", "0123456789*#", -1, 0, true, 0);</div>
<div><br></div><div>the file is created in the directory but when I try to play the sound I get the following error incase of gsm</div><div><br></div><div><div><DAHDI/i1/40275507-52>AGI Rx << STREAM FILE /var/sounds/145712900 "" 0</div>
<div>[May 24 14:00:07] WARNING[22415][C-0000019c]: file.c:492 filehelper: File
/var/sounds/145712900.gsm detected to have zero size.</div><div><br></div><div>and the following error incase of wav file format</div><div><br></div><div><div><DAHDI/i1/40275507-54>AGI Rx << STREAM FILE /var/sounds/1886163042 "" 0</div>
<div>[May 24 14:07:07] WARNING[22587][C-0000019e]: format_wav.c:159 check_header: Does not begin with RIFF</div><div>[May 24 14:07:07] WARNING[22587][C-0000019e]: file.c:393 fn_wrapper: Unable to open format wav</div><div>
<DAHDI/i1/40275507-54>AGI Tx >> 200 result=0 endpos=0</div><div> -- <DAHDI/i1/40275507-54>AGI Script record.php completed, returning 0</div></div><div><br></div><div><br></div><div>Please help</div><span class="HOEnZb"><font color="#888888"><div>
<br></div><div><br></div>-- <br>Regards,<br><br>Ashish Agarwal<br>
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Regards,<br><br>Ashish Agarwal<br>
</div>