[Freeswitch-users] Record_session cutting wav files

Mariusz Kołodziejczyk mariusz_kolo at wp.pl
Wed Jul 8 04:24:08 PDT 2009


Hello

After upgrade to latest version wavs recording is OK

Thanks a lot



>Hello,

>please try out FS >= r14143 as there were some fixes around call
>recording and media bugs.
>Please let us know the results.

>Regards,
>    Tamas


Mariusz Kołodziejczyk pisze:
> Hello
>
> I saw a strange behavior when i'm using record_session for outbound 
> call. Recorded file is 24:20 time length, but in logs should have 
> about 25:18.
>
> Here ma log:
>
> start recording about 2009-07-07 10:56:15
> 2009-07-07 10:56:15.108447 [DEBUG] mod_dptools.c:748 
> sofia/internal/1062 SET [czas]=[2009-07-07-10-56-15] - variable $czas 
> = "2009-07-07-10-56-15" i use it in filename below
> EXECUTE sofia/internal/1062 
> record_session(/records/2009-07-07/069630d2-6ad4-11de-aa6e-e31e1f9431c0.10XX.07135XXXXX.2009-07-07-10-56-15.out.ISDN.wav) 
>
> .....
> stop recording
> 2009-07-07 11:21:33.291177 [DEBUG] switch_ivr_async.c:444 Stop 
> recording file 
> /records/2009-07-07/069630d2-6ad4-11de-aa6e-e31e1f9431c0.10XX.07135XXXXX.2009-07-07-10-56-15.out.ISDN.wav 
>
>
> file should have about: 25:18 time length
> when i listen a file it's really cut
>
> My piece of dialplan:
>
> <condition field="destination_number" expression="^(\d{4,10})$">
>
>      <action application="set" data="RECORD_ANSWER_REQ=false"/>
>
>    <!-- dir for record files -->
>      <action application="set" data="dir=${strftime(%Y-%m-%d)}"/>
>      <!-- create dir if doesnt exists-->
>      <action application="system" data="mkdir -p /records/${dir}"/>
>
>    <!-- polish ringback -->
>      <action application="set" data="ringback=${pl-ring}"/>
>
>    <!-- setting var $czas -->
>      <action application="set" 
> data="czas=${strftime(%Y-%m-%d-%H-%M-%S)}"/>
>
>    <!-- start record session -->
>      <action application="record_session" 
> data="/records/${dir}/${uuid}.${caller_id_number}.$1.${czas}.out.ISDN.wav"/> 
>
>
>     <!-- bridge channels -->
>      <action application="bridge" 
> data="{origination_caller_id_number=${cti_gateway_number},effective_caller_id_number=${cti_gateway_number}}openzap/1/A/$1"/> 
>
>    </condition>
>
> freeswitch version: FreeSWITCH Version 1.0.trunk (14013)
> linux: Linux pbx2 2.6.26-1-686 #1 SMP Fri Mar 13 18:08:45 UTC 2009 
> i686 GNU/Linux
>
> Thanks
>





More information about the FreeSWITCH-users mailing list