-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Aviso aos navegantes que pode poupar horas de sono:
O kernel não deixa um processo que não esteja rodando como root set os dois primeiros bits (MFB) do tos, os bits relativos a DSCP (utlizados largamente em ambientes cisco e seus clones), portanto se o seu asterisk não roda como e você quer setar o dscp dos pacotes pode desistir de fazê-lo via sip.conf. Uma alternativa viável é usar o iptables para marcar os pacotes, esta solução sobrepõe qualquer valor setado no sip.conf, mas funciona muito bem. Eric Anderson escreveu: > Puts, desculpe, to acostumado a compilar tudo dos fontes... > > segue anexo o arquivo. > > <quote> > IP Type of Service settings for VoIP channels > --------------------------------------------- > > Asterisk can set the Type of Service (TOS) byte on outgoing IP packets > for various protocols. The TOS byte is used by the network to provide > some level of Quality of Service (QoS) even if the network is > congested with other traffic. > > * SIP > ----- > In sip.conf, there are three parameters that control the TOS settings: > "tos_sip", "tos_audio", and "tos_video". tos_sip controls what TOS SIP > call > signalling packets are set to. tos_audio controls what TOS RTP audio > packets are set to. tos_video controls what TOS RTP video packets are > set to. > There is a "tos" parameter that is supported for backwards > compatibility. The tos parameter should be avoided in sip.conf > because it sets all three tos settings in sip.conf to the same value. > sds > </quote> > > flw! > > Eric > > > ----- Original Message ----- From: "Diogo Cosito" > <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Cc: <asteriskbrasil@listas.asteriskbrasil.org> > Sent: Wednesday, May 16, 2007 6:39 PM > Subject: Re: [AsteriskBrasil] Priorização de pacotes > > >> Olá Eric, boa tarde. >> Onde leio esta informação????? Não entendi o que fazer...hehehe, >> desculpe. >> >> Grato pela atenção. >> >> Att >> >> Diogo >> >> >>> From: "Eric Anderson" <[EMAIL PROTECTED]> >>> Reply-To: Eric Anderson >>> <[EMAIL PROTECTED]>,asteriskbrasil@listas.asteriskbrasil.org >>> To: <asteriskbrasil@listas.asteriskbrasil.org> >>> Subject: Re: [AsteriskBrasil] Priorização de pacotes >>> Date: Wed, 16 May 2007 17:32:40 -0300 >>> >>> Opa >>> >>> dá uma lida em >>> >>> "; See doc/README.tos for a description of these parameters." >>> >>> acho que isso te ajudará >>> >>> (ainda não mexi nisso aqui, mas é ai que tá o pulo-do-gato) >>> >>> sds >>> >>> Eric >>> >>> ----- Original Message ----- >>> From: "Diogo Cosito" <[EMAIL PROTECTED]> >>> To: <asteriskbrasil@listas.asteriskbrasil.org> >>> Sent: Wednesday, May 16, 2007 4:02 PM >>> Subject: [AsteriskBrasil] Priorização de pacotes >>> >>> >>> Pessoal, estou com o seguinte problema: >>> Preciso fazer uma "priorização de pacotes" em minha rede >>> LAN,atualmente na >>> rede temos os switches da 3com modelo 3870 (Gigabit L3) e os >>> aparelhos IP >>> são Polycom IP 301, juntamente com softphones x-lite.O pessoal que >>> administra os switches, diz que quando os pacotes são originados da rede >>> para o asterisk, ou seja do polycom ip 301 para o asterisk, é >>> implementado o >>> header SIP no pacote e portanto é possível priorozar esse pacote na >>> rede, >>> dando prioridade a ele. Porém quando a comunicação é do asterisk para >>> a LAN, >>> nào existe a implementação deste header SIP e desta forma o switche >>> 3com, >>> não sabe que deve ser priorizados esses pacotes. >>> Poderiam me ajudar a resolver este problema? >>> Que medidas poderia adotar, para deixar o asterik "certinho" na rede? >>> Como poderia fazer a rede priorizar o asterisk? >>> Muito obrigado pela atenção de todos. >>> >>> Att >>> >>> Diogo >>> >>> _________________________________________________________________ >>> Descubra como mandar Torpedos do Messenger para o celular! >>> http://mobile.msn.com/ >>> >>> ---------------------------------------- >>> Estação VoIP 2006 >>> 5 e 6 Dezembro >>> Curitiba PR >>> http://www.estacaovoip.com.br >>> >>> _______________________________________________ >>> LIsta de discussões AsteriskBrasil.org >>> AsteriskBrasil@listas.asteriskbrasil.org >>> http://listas.asteriskbrasil.org/mailman/listinfo/asteriskbrasil >>> >>> _______________________________________________ >>> Acesse o wiki AsteriskBrasil.org: >>> http://www.asteriskbrasil.org >>> >>> >>> >>> ---------------------------------------- >>> Estação VoIP 2006 >>> 5 e 6 Dezembro >>> Curitiba PR >>> http://www.estacaovoip.com.br >>> >>> _______________________________________________ >>> LIsta de discussões AsteriskBrasil.org >>> AsteriskBrasil@listas.asteriskbrasil.org >>> http://listas.asteriskbrasil.org/mailman/listinfo/asteriskbrasil >>> >>> _______________________________________________ >>> Acesse o wiki AsteriskBrasil.org: >>> http://www.asteriskbrasil.org >> >> _________________________________________________________________ >> Verifique já a segurança do seu PC com o Verificador de Segurança do >> Windows Live OneCare! http://onecare.live.com/site/pt-br/default.htm >> >> >> > IP Type of Service settings for VoIP channels > --------------------------------------------- > > Asterisk can set the Type of Service (TOS) byte on outgoing IP packets > for various protocols. The TOS byte is used by the network to provide > some level of Quality of Service (QoS) even if the network is > congested with other traffic. > * SIP > ----- > In sip.conf, there are three parameters that control the TOS settings: > "tos_sip", "tos_audio", and "tos_video". tos_sip controls what TOS SIP > call > signalling packets are set to. tos_audio controls what TOS RTP audio > packets are set to. tos_video controls what TOS RTP video packets are > set to. There is a "tos" parameter that is supported for backwards > compatibility. The tos parameter should be avoided in sip.conf > because it sets all three tos settings in sip.conf to the same value. > > * IAX2 > ------ > In iax.conf, there is a "tos" parameter that sets the global default TOS > for IAX packets generated by chan_iax2. Since IAX connections combine > signalling, audio, and video into one UDP stream, it is not possible > to set the TOS separately for the different types of traffic. > > In iaxprov.conf, there is a "tos" parameter that tells the IAXy what TOS > to set on packets it generates. As with the parameter in iax.conf, > IAX packets generated by an IAXy cannot have different TOS settings > based upon the type of packet. However different IAXy devices can > have different TOS settings. > > The allowable values for any of the tos* parameters are: > CS0, CS1, CS2, CS3, CS4, CS5, CS6, CS7, AF11, AF12, AF13, > AF21, AF22, AF23, AF31, AF32, AF33, AF41, AF42, AF43 and > ef (expedited forwarding), > > The tos* parameters also take numeric values. > > The lowdelay, throughput, reliability, mincost, and none values are > deprecated because they set the IP TOS using the outdated "IP > precedence" model as defined in RFC 791 and RFC 1349. They still > work in this version of Asterisk, but will be removed in future releases. > > =========================================== > Configuration Parameter Recommended > File Setting > ------------------------------------------- > sip.conf tos_sip cs3 > sip.conf tos_audio ef > sip.conf tos_video af41 > ------------------------------------------- > iax.conf tos ef > ------------------------------------------- > iaxprov.conf tos ef > =========================================== > > > * REFERENCE > ----------- > RFC 2474 - "Definition of the Differentiated Services Field > (DS field) in the IPv4 and IPv6 Headers", Nichols, K., et al, > December 1998. > > IANA Assignments, DSCP registry > Differentiated Services Field Codepoints > http://www.iana.org/assignments/dscp-registry > > To get the most out of setting the TOS on packets generated by > Asterisk, you will need to ensure that your network handles packets > with a TOS properly. For Cisco devices, see the previously mentioned > "Enterprise QoS Solution Reference Network Design Guide". For Linux > systems see the "Linux Advanced Routing & Traffic Control HOWTO" at > <http://www.lartc.org/>. > > For more information on Quality of > Service for VoIP networks see the "Enterprise QoS Solution Reference > Network Design Guide" version 3.3 from Cisco at: > > <http://www.cisco.com/application/pdf/en/us/guest/netsol/ns432/c649/ccmigration_09186a008049b062.pdf> > > > > ------------------------------------------------------------------------ > > ---------------------------------------- > Estação VoIP 2006 > 5 e 6 Dezembro > Curitiba PR > http://www.estacaovoip.com.br > > _______________________________________________ > LIsta de discussões AsteriskBrasil.org > AsteriskBrasil@listas.asteriskbrasil.org > http://listas.asteriskbrasil.org/mailman/listinfo/asteriskbrasil > > _______________________________________________ > Acesse o wiki AsteriskBrasil.org: > http://www.asteriskbrasil.org - -- "What most profoundly divides two men is a different sense and degree of cleanliness. What help is all honesty and mutual utility, what help is all the good will for each other: in the end the fact remains-they can't stand each other?s smell!" - - Nietzsche -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGS5gh2QVs8jsa1mQRAt86AKCzZUi+BTQIZWjB1Q1UTKJsDqUCBQCcD7YU ticp78903ju7Uljo0BR05HA= =TC16 -----END PGP SIGNATURE----- ---------------------------------------- Estação VoIP 2006 5 e 6 Dezembro Curitiba PR http://www.estacaovoip.com.br _______________________________________________ LIsta de discussões AsteriskBrasil.org AsteriskBrasil@listas.asteriskbrasil.org http://listas.asteriskbrasil.org/mailman/listinfo/asteriskbrasil _______________________________________________ Acesse o wiki AsteriskBrasil.org: http://www.asteriskbrasil.org