Fudges for wav16, just like wav49

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@148070 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Tilghman Lesher
2008-10-09 21:37:23 +00:00
parent 9a56bae67a
commit f5d5eb5e19
5 changed files with 28 additions and 8 deletions

View File

@@ -1201,10 +1201,13 @@ static int read_agent_config(int reload)
recordagentcalls = ast_true(v->value);
} else if (!strcasecmp(v->name, "recordformat")) {
ast_copy_string(recordformat, v->value, sizeof(recordformat));
if (!strcasecmp(v->value, "wav49"))
if (!strcasecmp(v->value, "wav49")) {
strcpy(recordformatext, "WAV");
else
} else if (!strcasecmp(v->value, "wav16")) {
strcpy(recordformatext, "Wav");
} else {
ast_copy_string(recordformatext, v->value, sizeof(recordformatext));
}
} else if (!strcasecmp(v->name, "urlprefix")) {
ast_copy_string(urlprefix, v->value, sizeof(urlprefix));
if (urlprefix[strlen(urlprefix) - 1] != '/')