Allow ToS to be set in hex (bug #4923)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6314 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
parent
23a2111d40
commit
0849c5a386
|
@ -11030,7 +11030,7 @@ static int reload_config(void)
|
|||
} else if (!strcasecmp(v->name, "recordhistory")) {
|
||||
recordhistory = ast_true(v->value);
|
||||
} else if (!strcasecmp(v->name, "tos")) {
|
||||
if (sscanf(v->value, "%d", &format) == 1)
|
||||
if (sscanf(v->value, "%i", &format) == 1)
|
||||
tos = format & 0xff;
|
||||
else if (!strcasecmp(v->value, "lowdelay"))
|
||||
tos = IPTOS_LOWDELAY;
|
||||
|
|
Reference in New Issue