<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=koi8-r">
<META content="MSHTML 6.00.6000.20753" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>We have some number of questions in one letter:
</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>We make registration seance's audiostream
simultaneously into a 2 different files, which have an extensions "wav" and
"SPEEX".</FONT></DIV>
<DIV><FONT face=Arial size=2>We use for this extension about such
sort:<BR></FONT></DIV>
<DIV><FONT face=Arial size=2><extension name="20024"><BR>
<condition field="destination_number"
expression="^20024$"><BR> <action application="set"
data="bypass_media=false" /><BR> <action
application="set" data="RECORD_ANSWER_REQ="true" /><BR>
<action application="set" data="RECORD_TITLE=Recording ${destination_number}
${caller_id_number} ${strftime(%Y-%m-%d %H:%M)}"/><BR>
<action application="set" data="RECORD_COPYRIGHT=(c) 2008, Altron Inc."
/><BR> <action application="set"
data="RECORD_SOFTWARE=FreeSwitch" /><BR> <action
application="set" data="RECORD_ARTIST=Registration" /><BR>
<action application="set" data="RECORD_COMMENT=!!!"
/><BR> <action application="set"
data="RECORD_DATE=${strftime(%Y-%m-%d %H:%M)}"/><BR>
<action application="set"
data="RECORD_STEREO=true"/><BR> <action
application="record_session"
data="$${base_dir}/recordings/${strftime(%Y-%m-%d-%H-%M-%S)}_${destination_number}_${caller_id_number}.wav"/><BR>
<action application="record_session"
data="$${base_dir}/recordings/${strftime(%Y-%m-%d-%H-%M-%S)}_${destination_number}_${caller_id_number}.SPEEX"/><BR>
<action application="set"
data="ringback=${us-ring}"/><BR> <action
application="bridge" data="<A
href="mailto:sofia/internal/${dialed_ext}@192.168.2.107:5062">sofia/internal/${dialed_ext}@192.168.2.107:5062</A>"
/><BR> <action application="answer" /><BR>
</condition><BR></extension><BR> </FONT></DIV>
<DIV><FONT face=Arial size=2>As result we receive simultaneously 2 files ( audio
files are enclosed to the letter)<BR></FONT></DIV>
<DIV><FONT face=Arial size=2>$ ls -l 2008*<BR>-rw-r--r-- 1 olej olej 26880
σΕΞ 5 14:13 2008-09-05-14-13-08_20024_1010.SPEEX<BR>-rw-r--r-- 1 olej olej
107752 σΕΞ 5 14:13 2008-09-05-14-13-08_20024_1010.wav</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>1. File *.wav, as one would expect,
contains RIFF header with metadata and can be played back with
any matching tool, for example we used "sox"</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>*.SPEEX file, in that sort as it is written
with FreeSWITCH, contains, as we think looking for its size, compressed by
speex codec. </FONT></DIV>
<DIV><FONT face=Arial size=2>Is it really so?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Project SPEEX community develops own
tools (speexenc, speexdec) plaining, that their speex stream is located
into OGG container </FONT></DIV>
<DIV><FONT face=Arial size=2>and thus can be converted into *.wav or another (
with speexdec) and played back ( for example, with sox).</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>2. As it seems, *.SPEEX file can be played back
with another extension by using FreeSWITCH playback application.</FONT></DIV>
<DIV><FONT face=Arial size=2>Is it really so?</FONT></DIV>
<DIV><FONT face=Arial size=2>If it isn't so, than with which 3-rd part
tool we could play back *.SPEEX file for the control?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>3. And final question:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><action application="set"
data="RECORD_STEREO=true"/> - does it pack 2 channels from A-leg and B-leg of
bridge into<BR>one *.wav stream?<BR>Can we register only A-leg or B-leg with
record_session application??</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thanks in advance!</FONT></DIV>
<DIV><FONT face=Arial size=2>Evgeniy/</DIV>
<DIV><BR></DIV></FONT></BODY></HTML>