<html>
<head>
<style>
P
{
margin:0px;
padding:0px
}
body
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body>I use the following in rc.local for setting tos bits using iptables:<br><br>iptables -A POSTROUTING -t mangle -p udp -m udp --sport 10000:20000 -j DSCP --set-dscp 0x2e<br><br>Works like a champ!<br><br>&gt; &nbsp;&nbsp;&nbsp;1.&nbsp;RE:&nbsp;Setting&nbsp;QOS&nbsp;settings&nbsp;in&nbsp;asterisk&nbsp;and/or&nbsp;CentOS?<br>&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(Redouane&nbsp;Doumer)<br>&gt; De&nbsp;:&nbsp;BerkHolz,&nbsp;Steven&nbsp;[mailto:StevenBerkHolz@TESCOGroup.com]&nbsp;<br>&gt; Envoyé&nbsp;:&nbsp;jeudi&nbsp;21&nbsp;septembre&nbsp;2006&nbsp;15:33<br>&gt; À&nbsp;:&nbsp;asterisk-users@lists.digium.com<br>&gt; Objet&nbsp;:&nbsp;[asterisk-users]&nbsp;Setting&nbsp;QOS&nbsp;settings&nbsp;in&nbsp;asterisk&nbsp;and/or&nbsp;CentOS?<br>&gt; <br>&gt; <br>&gt; How&nbsp;would&nbsp;I&nbsp;go&nbsp;about&nbsp;setting&nbsp;the&nbsp;TOS&nbsp;bit&nbsp;to&nbsp;"RTP&nbsp;IP&nbsp;TOS&nbsp;Byte:&nbsp;&nbsp;18&nbsp;(hex)"&nbsp;for&nbsp;SIP&nbsp;and&nbsp;IAX&nbsp;traffic&nbsp;at&nbsp;the&nbsp;asterisk&nbsp;server?<br>&gt; &nbsp;<br>&gt; Also,&nbsp;<br>&gt; Do&nbsp;you&nbsp;have&nbsp;a&nbsp;quick&nbsp;reference&nbsp;on&nbsp;how&nbsp;to&nbsp;configure&nbsp;a&nbsp;Cisco&nbsp;switch&nbsp;to&nbsp;prioritize&nbsp;SIP&nbsp;traffic?<br>&gt; I&nbsp;check&nbsp;in&nbsp;various&nbsp;Cisco&nbsp;docs,&nbsp;and&nbsp;there&nbsp;are&nbsp;so&nbsp;many&nbsp;references,&nbsp;and&nbsp;none&nbsp;of&nbsp;them&nbsp;seem&nbsp;to&nbsp;relate&nbsp;directly&nbsp;to&nbsp;using&nbsp;the&nbsp;TOS&nbsp;bit&nbsp;for&nbsp;QOS.<br>&gt; &nbsp;<br>&gt; I&nbsp;am&nbsp;looking&nbsp;into&nbsp;using&nbsp;the&nbsp;TOS&nbsp;bit&nbsp;because&nbsp;that&nbsp;is&nbsp;the&nbsp;only&nbsp;method&nbsp;that&nbsp;my&nbsp;SIP&nbsp;devices&nbsp;use.&nbsp;(Citel&nbsp;Handset&nbsp;Gateway)<br>&gt; &nbsp;<br>&gt; ref:<br>&gt; QOS&nbsp;settings&nbsp;from&nbsp;Citel&nbsp;Handset&nbsp;Gateway:<br>&gt; Handset&nbsp;Gateway&nbsp;-&nbsp;QoS&nbsp;Configuration<br>&gt; <br>&gt; IP&nbsp;Type&nbsp;of&nbsp;Service&nbsp;<br>&gt; RTP&nbsp;IP&nbsp;TOS&nbsp;Byte:&nbsp;&nbsp;18&nbsp;(hex)&nbsp;<br>&gt; <br>&gt; Silence&nbsp;Suppression&nbsp;<br>&gt; Mute&nbsp;Mode:&nbsp;On,&nbsp;UDP&nbsp;keep-alive&nbsp;every&nbsp;10&nbsp;seconds<br>&gt; G.711&nbsp;Voice&nbsp;Activity&nbsp;Detection:&nbsp;Off<br>&gt; <br>&gt; Codec&nbsp;Preferences&nbsp;<br>&gt; G.711u:&nbsp;1&nbsp;(Highest&nbsp;priority)&nbsp;<br>&gt; G.711a:&nbsp;2<br>&gt; &nbsp;<br>&gt; &nbsp;<br>&gt; <br>&gt; Thank&nbsp;You,<br>&gt; <br>&gt; Steven&nbsp;BerkHolz<br>&gt; -&nbsp;MCSA&nbsp;-&nbsp;MCSE&nbsp;-<br>&gt; Manager&nbsp;of&nbsp;Information&nbsp;Systems<br>&gt; TESCO&nbsp;Group&nbsp;Companies<br>&gt; Fax.&nbsp;248-836-5101<br>&gt; www.TESCOGroup.com<br><br></body>
</html>