<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi there,<br>
<br>
I've noticed that the variable_record_ms and variable_record_seconds
values are often inaccurate. Is there any explanation for this?<br>
<br>
The example below shows that while the RECORD_START and RECORD_STOP
events were about 4 seconds apart, the variables claim that the file
is 7 seconds long. See the soxi output at the end, which shows that
the length of the file is 00:00:03.50, thus more in line with what
the event timestamps suggest.<br>
<br>
RECV EVENT<br>
Event-Name: RECORD_START<br>
Core-UUID: 235bab4c-36c6-48af-87d7-0f30a1140d52<br>
<b>Event-Date-GMT: Wed, 21 Sep 2011 14:52:24 GMT</b><br>
Event-Date-Timestamp: 1316616744483384<br>
Event-Calling-File: switch_ivr_play_say.c<br>
Event-Calling-Function: switch_ivr_record_file<br>
Event-Calling-Line-Number: 615<br>
Unique-ID: fa39d249-c9da-4072-aebe-4b606e661e5f<br>
Caller-Profile-Created-Time: 1316616744483384<br>
Caller-Channel-Created-Time: 1316616740683382<br>
Caller-Channel-Answered-Time: 1316616740683382<br>
<b>variable_current_application_data:
/tmp/fa39d249-c9da-4072-aebe-4b606e661e5f.wav 120 200 2</b><br>
variable_current_application: record<br>
Record-File-Path: /tmp/fa39d249-c9da-4072-aebe-4b606e661e5f.wav<br>
<br>
RECV EVENT<br>
Event-Name: RECORD_STOP<br>
Core-UUID: 235bab4c-36c6-48af-87d7-0f30a1140d52<br>
<b>Event-Date-GMT: Wed, 21 Sep 2011 14:52:28 GMT</b><br>
Event-Date-Timestamp: 1316616748083413<br>
Event-Calling-File: switch_ivr_play_say.c<br>
Event-Calling-Function: switch_ivr_record_file<br>
Event-Calling-Line-Number: 790<br>
Unique-ID: fa39d249-c9da-4072-aebe-4b606e661e5f<br>
Caller-Profile-Created-Time: 1316616744483384<br>
Caller-Channel-Created-Time: 1316616740683382<br>
Caller-Channel-Answered-Time: 1316616740683382<br>
<b>variable_current_application_data:
/tmp/fa39d249-c9da-4072-aebe-4b606e661e5f.wav 120 200 2</b><br>
variable_current_application: record<br>
<b>variable_record_seconds: 7</b><br>
<b>variable_record_ms: 7000</b><br>
variable_record_samples: 56000<br>
Record-File-Path: /tmp/fa39d249-c9da-4072-aebe-4b606e661e5f.wav<br>
<br>
root@dev:/usr/local/freeswitch# soxi
/tmp/fa39d249-c9da-4072-aebe-4b606e661e5f.wav<br>
<br>
Input File : '/tmp/fa39d249-c9da-4072-aebe-4b606e661e5f.wav'<br>
Channels : 1<br>
Sample Rate : 8000<br>
Precision : 16-bit<br>
Duration : <b>00:00:03.50</b> = 28000 samples ~ 262.5 CDDA
sectors<br>
File Size : 56.0k<br>
Bit Rate : 128k<br>
Sample Encoding: 16-bit Signed Integer PCM
</body>
</html>