Index: channels/chan_sip.c =================================================================== RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v retrieving revision 1.804 diff -u -u -r1.804 chan_sip.c --- channels/chan_sip.c 8 Aug 2005 00:15:37 -0000 1.804 +++ channels/chan_sip.c 9 Aug 2005 14:34:03 -0000 @@ -11030,7 +11030,7 @@ } 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;