QOS VoIP Mktk

De Slacam_Wiki
Ir para: navegação, pesquisa

Prioridade no canal de voz para VoIP e Mikrotik

Use a configuração abaixo:


/ip firewall mangle
add chain=prerouting action=mark-packet new-packet-mark=GERAL passthrough=yes
add chain=postrouting action=mark-packet new-packet-mark=GERAL passthrough=yes
add chain=forward action=mark-packet new-packet-mark=GERAL passthrough=yes
add chain=prerouting dst-address=189.38.73.14 action=mark-packet new-packet-mark=VOIP passthrough=yes
add chain=postrouting dst-address=189.38.73.14 action=mark-packet new-packet-mark=VOIP passthrough=yes
add chain=forward dst-address=189.38.73.14 action=mark-packet new-packet-mark=VOIP passthrough=yes
add chain=prerouting dst-address=189.38.64.50 action=mark-packet new-packet-mark=VOIP passthrough=yes
add chain=postrouting dst-address=189.38.64.50 action=mark-packet new-packet-mark=VOIP passthrough=yes
add chain=forward dst-address=189.38.64.50 action=mark-packet new-packet-mark=VOIP passthrough=yes
/
/
/queue tree
add name="QOS - GERAL - Prioridade 8" parent=global-in packet-mark=GERAL limit-at=0 queue=default priority=8 max-limit=0 burst-limit=0 burst-threshold=0 burst-time=0s
add name="QOS - VOIP - Prioridade 2" parent=global-in packet-mark=VOIP limit-at=0 queue=default priority=2 max-limit=0  burst-limit=0 burst-threshold=0 burst-time=0s
/
/

Atentar para o seguinte:

1 - O tracking do mikrotik tem que estar habilitado para haver a marcação dos pacotes de VoIP

2 - No mangle o IP colocado é da sua central VoIP (asterisk - pap2t - sipura- etc)

3 - Caso queira acrescentar mais central VoIP complete com as 03 últimas linhas no mangle (deletar as anteriores na interface gráfica para não acumular)