mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-13 00:04:53 +00:00
Allow ToS to be set in hex (bug #4923)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6314 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -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
Block a user