[asterisk-commits] branch 1.2 r19008 - in /branches/1.2: app.c
apps/app_voicemail.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Mon Apr 10 18:05:02 MST 2006
Author: bweschke
Date: Mon Apr 10 20:05:01 2006
New Revision: 19008
URL: http://svn.digium.com/view/asterisk?rev=19008&view=rev
Log:
When using the silence detector in ast_play_and_record() and ast_play_and_prepend(), the truncation code never gets called to remove the detected silence, because the value of res is zero when control gets to that point. #6903 w/some mods (softins)
Modified:
branches/1.2/app.c
branches/1.2/apps/app_voicemail.c
Modified: branches/1.2/app.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/app.c?rev=19008&r1=19007&r2=19008&view=diff
==============================================================================
--- branches/1.2/app.c (original)
+++ branches/1.2/app.c Mon Apr 10 20:05:01 2006
@@ -551,7 +551,6 @@
struct ast_dsp *sildet=NULL; /* silence detector dsp */
int totalsilence = 0;
int dspsilence = 0;
- int gotsilence = 0; /* did we timeout for silence? */
int rfmt=0;
struct ast_silence_generator *silgen = NULL;
@@ -674,7 +673,7 @@
if (option_verbose > 2)
ast_verbose( VERBOSE_PREFIX_3 "Recording automatically stopped after a silence of %d seconds\n", totalsilence/1000);
ast_frfree(f);
- gotsilence = 1;
+ res = 'S';
outmsg=2;
break;
}
@@ -778,7 +777,6 @@
struct ast_dsp *sildet; /* silence detector dsp */
int totalsilence = 0;
int dspsilence = 0;
- int gotsilence = 0; /* did we timeout for silence? */
int rfmt=0;
char prependfile[80];
@@ -897,7 +895,7 @@
if (option_verbose > 2)
ast_verbose( VERBOSE_PREFIX_3 "Recording automatically stopped after a silence of %d seconds\n", totalsilence/1000);
ast_frfree(f);
- gotsilence = 1;
+ res = 'S';
outmsg=2;
break;
}
Modified: branches/1.2/apps/app_voicemail.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/apps/app_voicemail.c?rev=19008&r1=19007&r2=19008&view=diff
==============================================================================
--- branches/1.2/apps/app_voicemail.c (original)
+++ branches/1.2/apps/app_voicemail.c Mon Apr 10 20:05:01 2006
@@ -3298,7 +3298,7 @@
cmd = 't';
}
}
- if (cmd == 't')
+ if (cmd == 't' || cmd == 'S')
cmd = 0;
return cmd;
}
More information about the asterisk-commits
mailing list