Thanks for kind help steve:)<div><br></div><div>I will try on monday and will provide you feed back </div><div><br></div><div>Cheers<br><br><div class="gmail_quote">On Fri, Aug 21, 2009 at 10:10 PM, Steve Edwards <span dir="ltr">&lt;<a href="http://asterisk.org">asterisk.org</a>@<a href="http://sedwards.com">sedwards.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">&gt; On Fri, Aug 21, 2009 at 9:26 PM, Steve Edwards<br>
&gt;<br>
</div><div class="im">&gt;&gt; If you told Asterisk to record to a file on a RAM disk and then<br>
&gt;&gt; inserted the file&#39;s data in the database, you could achieve your goal<br>
&gt;&gt; without a major performance hit.<br>
&gt;&gt;<br>
&gt;&gt; Inelegant, but functional.<br>
<br>
</div><div class="im">On Fri, 21 Aug 2009, ABBAS SHAKEEL wrote:<br>
<br>
</div><div class="im">&gt; Ahan Steve how can i achieve this ?<br>
<br>
</div>Of the top of my head...<br>
<br>
Write an AGI - record-to-database:<br>
<br>
1) Use the &quot;record file&quot; AGI command, specifying a path to the RAM disk<br>
and a unique filename (process id?).<br>
<br>
2) Open the file.<br>
<br>
3) Read the contents.<br>
<br>
4) Close the file.<br>
<br>
5) Write the contents to the database.<br>
<br>
6) Delete the recorded file.<br>
<br>
Write another AGI - playback-from-database:<br>
<br>
1) Create a unique file on the RAM disk.<br>
<br>
2) Read the contents from the database.<br>
<br>
3) Write the contents to the file.<br>
<br>
4) Close the file.<br>
<br>
5) Play the file using &quot;stream file&quot; AGI command.<br>
<br>
Or, write me a check and tell your boss it&#39;s take care of :)<br>
<font color="#888888"><br>
--<br>
</font><div><div></div><div class="h5">Thanks in advance,<br>
-------------------------------------------------------------------------<br>
Steve Edwards       <a href="mailto:sedwards@sedwards.com">sedwards@sedwards.com</a>      Voice: +1-760-468-3867 PST<br>
Newline                                              Fax: +1-760-731-3000<br>
<br>
_______________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
<br>
AstriCon 2009 - October 13 - 15 Phoenix, Arizona<br>
Register Now: <a href="http://www.astricon.net" target="_blank">http://www.astricon.net</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Best Regards<br>Shakeel Abbas<br><br>
</div>