mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-01 11:32:25 +00:00
Avoid cppcheck warnings; removing unused vars and a bit of cleanup.
Patch by: Clod Patry Review: https://reviewboard.asterisk.org/r/1651 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@354429 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1706,7 +1706,6 @@ static int setup_privacy_args(struct privacy_args *pa,
|
||||
char callerid[60];
|
||||
int res;
|
||||
char *l;
|
||||
int silencethreshold;
|
||||
|
||||
if (chan->caller.id.number.valid
|
||||
&& !ast_strlen_zero(chan->caller.id.number.str)) {
|
||||
@@ -1781,7 +1780,7 @@ static int setup_privacy_args(struct privacy_args *pa,
|
||||
"At the tone, please say your name:"
|
||||
|
||||
*/
|
||||
silencethreshold = ast_dsp_get_threshold_from_settings(THRESHOLD_SILENCE);
|
||||
int silencethreshold = ast_dsp_get_threshold_from_settings(THRESHOLD_SILENCE);
|
||||
ast_answer(chan);
|
||||
res = ast_play_and_record(chan, "priv-recordintro", pa->privintro, 4, "sln", &duration, NULL, silencethreshold, 2000, 0); /* NOTE: I've reduced the total time to 4 sec */
|
||||
/* don't think we'll need a lock removed, we took care of
|
||||
|
||||
Reference in New Issue
Block a user