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;