Hi
all,
Currently i can
record a call via
<action
application="record_session"
data="$${base_dir}/recordings/${strftime(%Y-%m-%d-%H-%M-%S)}_${destination_number}_${caller_id_number}.wav"/>
But in this way i
can only record to a file.
I have some
experience with perl and mysql.
I'd like to record a
call into database (mysql or postgre).
I hope it's possible
via mod_perl... is it?
If yes, how can i
pass voice into perl script?
I guess that i can
just do the following
<action application="record_session"
data="$${base_dir}/recordings/${strftime(%Y-%m-%d-%H-%M-%S)}_${destination_number}_${caller_id_number}.wav"/>
<action
application="perl" data="recorder.pl
$${base_dir}/recordings/${strftime(%Y-%m-%d-%H-%M-%S)}_${destination_number}_${caller_id_number}.wav"
/>
So that my perl
script recorder.pl will get recorded file name as it's first
argument.
But when my script
starts, will the recording allready be finished?
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.
Is there a way
to write directly into database?
Something like
<action
application="record_session" data=" |recorder.pl" />
?
Thanks in
advance,
Nikolay.