dect
/
asterisk
Archived
13
0
Fork 0

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:
markster 2005-08-09 16:20:32 +00:00
parent 23a2111d40
commit 0849c5a386
1 changed files with 1 additions and 1 deletions

View File

@ -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;