[Freeswitch-users] record_session and file size

Mike Jerris mike at freeswitch.org
Wed Apr 3 22:21:07 UTC 2019


root at mike-deb9-129 [Wed Apr 03 10:20 PM]  /usr/src/freeswitch.git
<1367>:git checkout master
Already on 'master'
Your branch is up-to-date with 'origin/master'.

root at mike-deb9-129 [Wed Apr 03 10:20 PM]  /usr/src/freeswitch.git
<1368>:git pull
Current branch master is up to date.

root at mike-deb9-129 [Wed Apr 03 10:20 PM]  /usr/src/freeswitch.git
<1369>:git grep -n record_file_size src/*.c
src/switch_ivr_async.c:1498:                            if (file_size) switch_channel_set_variable(channel, "record_file_size", file_size);
src/switch_ivr_play_say.c:933:  if (file_size) switch_channel_set_variable(channel, "record_record_file_size", file_size);


> On Apr 3, 2019, at 3:52 PM, Gavin Henry <gavin.henry at gmail.com> wrote:
> 
> Thanks. Is that there by default? I couldn’t see it. In fs 1.6 or 1.8?
> 
> On Wed, 3 Apr 2019 at 18:43, Mike Jerris <mike at freeswitch.org <mailto:mike at freeswitch.org>> wrote:
> record_file_size
> 
> 
>> On Apr 3, 2019, at 10:48 AM, Mike Jerris <mike at freeswitch.org <mailto:mike at freeswitch.org>> wrote:
>> 
>> Nope those are not them.  There are ones for recording length.
>> 
>>> On Apr 2, 2019, at 3:53 PM, Gavin Henry <gavin.henry at gmail.com <mailto:gavin.henry at gmail.com>> wrote:
>>> 
>>> Any ideas?
>>> 
>>> Thanks.
>>> 
>>> On Sun, 31 Mar 2019 at 20:20, Gavin Henry <gavin.henry at gmail.com <mailto:gavin.henry at gmail.com>> wrote:
>>> Hi Mike,
>>> 
>>> The only ones I see are:
>>> 
>>> rtp_audio_in_raw_bytes 163136
>>> rtp_audio_out_raw_bytes 139664
>>> 
>>> rtp_audio_in_media_bytes 163056
>>> rtp_audio_out_media_bytes 139664
>>> 
>>> and these are there whether record_session is set or not. So I presume
>>> as the default file format is wav, which on the filesystem for the
>>> above call shows as 318444 bytes, then it's the combo of in_raw and
>>> out_raw, but that doesn't add up...
>>> 
>>> The duration of the call is 21 secs, so if it's wav I could use
>>> https://en.wikipedia.org/wiki/WAV <https://en.wikipedia.org/wiki/WAV> to work out the size as I don't want
>>> to access the filesystem.
>>> 
>> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20190403/127f41fd/attachment-0001.html>


More information about the FreeSWITCH-users mailing list