Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv14794/channels

Modified Files:
        chan_sip.c 
Log Message:
Allow ToS to be set in hex (bug #4923)


Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.804
retrieving revision 1.805
diff -u -d -r1.804 -r1.805
--- chan_sip.c  8 Aug 2005 00:15:37 -0000       1.804
+++ chan_sip.c  9 Aug 2005 16:20:32 -0000       1.805
@@ -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;

_______________________________________________
Asterisk-Cvs mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-cvs

Reply via email to