Hi all, Is there a way to get at the final file size of a recorded call in the CDR or via ESL? Thanks.
there are vars set for it yes. if you look at the xml cdr you should see them On Mon, Mar 25, 2019 at 2:35 PM Gavin Henry <gavin.henry@gmail.com> wrote:
Hi all,
Is there a way to get at the final file size of a recorded call in the CDR or via ESL?
Thanks.
_________________________________________________________________________ Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users https://freeswitch.com
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 to work out the size as I don't want to access the filesystem. Thanks.
Any ideas? Thanks. On Sun, 31 Mar 2019 at 20:20, Gavin Henry <gavin.henry@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 to work out the size as I don't want to access the filesystem.
Thanks.
-- http://www.suretecsystems.com/services/openldap/ http://www.surevoip.co.uk
Nope those are not them. There are ones for recording length.
On Apr 2, 2019, at 3:53 PM, Gavin Henry <gavin.henry@gmail.com> wrote:
Any ideas?
Thanks.
On Sun, 31 Mar 2019 at 20:20, Gavin Henry <gavin.henry@gmail.com <mailto:gavin.henry@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.
record_file_size
On Apr 3, 2019, at 10:48 AM, Mike Jerris <mike@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@gmail.com <mailto:gavin.henry@gmail.com>> wrote:
Any ideas?
Thanks.
On Sun, 31 Mar 2019 at 20:20, Gavin Henry <gavin.henry@gmail.com <mailto:gavin.henry@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.
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@freeswitch.org> wrote:
record_file_size
On Apr 3, 2019, at 10:48 AM, Mike Jerris <mike@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@gmail.com> wrote:
Any ideas?
Thanks.
On Sun, 31 Mar 2019 at 20:20, Gavin Henry <gavin.henry@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 to work out the size as I don't want to access the filesystem.
_________________________________________________________________________ Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users https://freeswitch.com
-- http://www.suretecsystems.com/services/openldap/ http://www.surevoip.co.uk
Ah, that was added 6~ months ago: https://freeswitch.org/stash/projects/FS/repos/freeswitch/commits/b96b109501...
root@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@mike-deb9-129 [Wed Apr 03 10:20 PM] /usr/src/freeswitch.git <1368>:git pull Current branch master is up to date. root@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@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@freeswitch.org <mailto:mike@freeswitch.org>> wrote: record_file_size
On Apr 3, 2019, at 10:48 AM, Mike Jerris <mike@freeswitch.org <mailto:mike@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@gmail.com <mailto:gavin.henry@gmail.com>> wrote:
Any ideas?
Thanks.
On Sun, 31 Mar 2019 at 20:20, Gavin Henry <gavin.henry@gmail.com <mailto:gavin.henry@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.
participants (3)
-
Gavin Henry
-
Mike Jerris
-
Mike Jerris