[asterisk-commits] branch group/rtpjitterbuffer r29767 -
/team/group/rtpjitterbuffer/abstract_jb.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Tue May 23 11:46:20 MST 2006
Author: russell
Date: Tue May 23 13:46:19 2006
New Revision: 29767
URL: http://svn.digium.com/view/asterisk?rev=29767&view=rev
Log:
make the parsing of the jitterbuffer config options not case sensitive
Modified:
team/group/rtpjitterbuffer/abstract_jb.c
Modified: team/group/rtpjitterbuffer/abstract_jb.c
URL: http://svn.digium.com/view/asterisk/team/group/rtpjitterbuffer/abstract_jb.c?rev=29767&r1=29766&r2=29767&view=diff
==============================================================================
--- team/group/rtpjitterbuffer/abstract_jb.c (original)
+++ team/group/rtpjitterbuffer/abstract_jb.c Tue May 23 13:46:19 2006
@@ -574,25 +574,25 @@
char *name;
int tmp;
- if (memcmp(AST_JB_CONF_PREFIX, varname, prefixlen))
+ if (strncasecmp(AST_JB_CONF_PREFIX, varname, prefixlen))
return -1;
name = varname + prefixlen;
- if (!strcmp(name, AST_JB_CONF_ENABLE)) {
+ if (!strcasecmp(name, AST_JB_CONF_ENABLE)) {
ast_set2_flag(conf, ast_true(value), AST_JB_ENABLED);
- } else if (!strcmp(name, AST_JB_CONF_FORCE)) {
+ } else if (!strcasecmp(name, AST_JB_CONF_FORCE)) {
ast_set2_flag(conf, ast_true(value), AST_JB_FORCED);
- } else if (!strcmp(name, AST_JB_CONF_MAX_SIZE)) {
+ } else if (!strcasecmp(name, AST_JB_CONF_MAX_SIZE)) {
if ((tmp = atoi(value)) > 0)
conf->max_size = tmp;
- } else if (!strcmp(name, AST_JB_CONF_RESYNCH_THRESHOLD)) {
+ } else if (!strcasecmp(name, AST_JB_CONF_RESYNCH_THRESHOLD)) {
if ((tmp = atoi(value)) > 0)
conf->resync_threshold = tmp;
- } else if (!strcmp(name, AST_JB_CONF_IMPL)) {
+ } else if (!strcasecmp(name, AST_JB_CONF_IMPL)) {
if (!ast_strlen_zero(value))
snprintf(conf->impl, sizeof(conf->impl), "%s", value);
- } else if (!strcmp(name, AST_JB_CONF_LOG)) {
+ } else if (!strcasecmp(name, AST_JB_CONF_LOG)) {
ast_set2_flag(conf, ast_true(value), AST_JB_LOG);
} else {
return -1;
More information about the asterisk-commits
mailing list