<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18928"></HEAD>
<BODY>
<DIV><FONT size=2 face=Arial><SPAN class=562014213-20102010>Hi
all,</SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial><SPAN class=562014213-20102010>Currently i can
record a call via </SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial><SPAN class=562014213-20102010><action
application="record_session"
data="$${base_dir}/recordings/${strftime(%Y-%m-%d-%H-%M-%S)}_${destination_number}_${caller_id_number}.wav"/></SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial><SPAN class=562014213-20102010>But in this way i
can only record to a file.</SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial><SPAN class=562014213-20102010>I have some
experience with perl and mysql.</SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial><SPAN class=562014213-20102010>I'd like to record a
call into database (mysql or postgre). </SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial><SPAN class=562014213-20102010>I hope it's possible
via mod_perl... is it? </SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial><SPAN class=562014213-20102010>If yes, how can i
pass voice into perl script?</SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial><SPAN
class=562014213-20102010></SPAN></FONT> </DIV>
<DIV><FONT size=2 face=Arial><SPAN class=562014213-20102010>I guess that i can
just do the following</SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial><SPAN class=562014213-20102010><SPAN
class=562014213-20102010><action application="record_session"
data="$${base_dir}/recordings/${strftime(%Y-%m-%d-%H-%M-%S)}_${destination_number}_${caller_id_number}.wav"/></SPAN></SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial><SPAN class=562014213-20102010><action
application="perl" data="recorder.pl
$${base_dir}/recordings/${strftime(%Y-%m-%d-%H-%M-%S)}_${destination_number}_${caller_id_number}.wav"
/></SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial><SPAN class=562014213-20102010>So that my perl
script recorder.pl will get recorded file name as it's first
argument.</SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial><SPAN class=562014213-20102010>But when my script
starts, will the recording allready be finished?</SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial><SPAN
class=562014213-20102010></SPAN></FONT> </DIV>
<DIV><FONT size=2></FONT><FONT face=Arial><SPAN class=562014213-20102010><FONT
size=2>In this way (if it will work at all) i will first record a call in a
file, and then put this file into database.</FONT></SPAN></FONT></DIV>
<DIV><FONT face=Arial><SPAN class=562014213-20102010><FONT size=2>Is there a way
to write directly into database? </FONT></SPAN></FONT></DIV>
<DIV><FONT face=Arial><SPAN class=562014213-20102010><FONT size=2>Something like
<SPAN class=562014213-20102010><SPAN class=562014213-20102010><action
application="record_session" data=" |recorder.pl" />
?</SPAN></SPAN></FONT></SPAN></FONT><FONT face=Arial><SPAN
class=562014213-20102010></DIV>
<DIV><FONT size=2><BR></FONT></DIV></SPAN></FONT>
<DIV><FONT size=2 face=Arial><SPAN class=562014213-20102010>Thanks in
advance,</SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial><SPAN
class=562014213-20102010>Nikolay.</SPAN></FONT></DIV></BODY></HTML>