[asterisk-bugs] [Asterisk 0011109]: Silence detector not working
noreply at bugs.digium.com
noreply at bugs.digium.com
Mon Oct 29 15:04:47 CDT 2007
A NOTE has been added to this issue.
======================================================================
http://bugs.digium.com/view.php?id=11109
======================================================================
Reported By: birajr
Assigned To: qwell
======================================================================
Project: Asterisk
Issue ID: 11109
Category: Applications/app_record
Reproducibility: always
Severity: major
Priority: normal
Status: confirmed
Asterisk Version: 1.4.13
SVN Branch (only for SVN checkouts, not tarball releases): N/A
SVN Revision (number only!):
Disclaimer on File?: N/A
Request Review:
======================================================================
Date Submitted: 10-29-2007 13:02 CDT
Last Modified: 10-29-2007 15:04 CDT
======================================================================
Summary: Silence detector not working
Description:
The Silence detector is not working in the app record.
======================================================================
----------------------------------------------------------------------
birajr - 10-29-07 15:04
----------------------------------------------------------------------
I´m running the 1.4.13 version
My extention is:
exten => 123,1,Answer()
exten => 123,2,Record(/testrec.gsm|5|100)
exten => 123,3,hangup()
The record do not stop with silence after 5 seconds, it only stop with a
DTMF key.
In the oficial app_record.c dont have any debug message, I put the debug
code as bellow (ast_log(LOG_DEBUG, "Got silence %d\n", totalsilence);):
app_record.c:299
if (f->frametype == AST_FRAME_VOICE) {
res = ast_writestream(s, f);
if (res) {
ast_log(LOG_WARNING, "Problem writing frame\n");
ast_frfree(f);
break;
}
if (silence > 0) {
dspsilence = 0;
ast_dsp_silence(sildet, f, &dspsilence);
if (dspsilence) {
totalsilence = dspsilence;
ast_log(LOG_DEBUG, "Got silence %d\n", totalsilence);
} else {
totalsilence = 0;
}
if (totalsilence > silence) {
/* Ended happily with silence */
ast_frfree(f);
gotsilence = 1;
break;
}
}
}
Issue History
Date Modified Username Field Change
======================================================================
10-29-07 15:04 birajr Note Added: 0072682
======================================================================
More information about the asterisk-bugs
mailing list