Fix a couple of places where "tos" was used instead of "cos".
authorRussell Bryant <russell@russellbryant.com>
Mon, 4 Jun 2007 15:14:52 +0000 (15:14 +0000)
committerRussell Bryant <russell@russellbryant.com>
Mon, 4 Jun 2007 15:14:52 +0000 (15:14 +0000)
(issue #9540, patch by IgorG)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@67016 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c
main/netsock.c

index 2087d19..b22bad0 100644 (file)
@@ -17771,7 +17771,7 @@ static int reload_config(enum channelreloadreason reason)
                                        ast_verbose(VERBOSE_PREFIX_2 "SIP Listening on %s:%d\n", 
                                                ast_inet_ntoa(bindaddr.sin_addr), ntohs(bindaddr.sin_port));
 
-                               ast_netsock_set_qos(sipsock, global_tos_sip, global_tos_sip);
+                               ast_netsock_set_qos(sipsock, global_tos_sip, global_cos_sip);
                        }
                }
        }
index 6e01432..2ce60b8 100644 (file)
@@ -185,7 +185,7 @@ int ast_netsock_set_qos(int netsocket, int tos, int cos)
            ast_log(LOG_WARNING, "Unable to set CoS to %d\n", cos);
        else {
            if (option_verbose > 1)
-               ast_verbose(VERBOSE_PREFIX_2 "Using CoS mark %d\n", tos);
+               ast_verbose(VERBOSE_PREFIX_2 "Using CoS mark %d\n", cos);
        }
 #endif