From 95cf08ee927ab3ea1e3723e179a279f5736a57c2 Mon Sep 17 00:00:00 2001 From: Mark Spencer Date: Tue, 9 Aug 2005 16:20:32 +0000 Subject: [PATCH] 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 --- channels/chan_sip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 1fc44f7dee..898c94581f 100755 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -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;