Mikrotik QoS

Have got VoIPnMikrotik?
Need QoS?

/ip firewall mangle
add action=mark-packet chain=forward comment="" disabled=no new-packet-mark=prio_in \
    passthrough=yes protocol=udp src-address=ipofyorsipprovider
add action=mark-packet chain=forward comment="" disabled=no dst-address=ipofyorsipprovider \
    new-packet-mark=prio_out passthrough=yes protocol=udp
add action=mark-packet chain=forward comment="" disabled=no new-packet-mark=rest_up \
    packet-mark=!prio_out passthrough=yes src-address=lan/24
add action=mark-packet chain=forward comment="" disabled=no dst-address=lan/24 \
    new-packet-mark=rest_down packet-mark=!prio_in passthrough=yes
add action=mark-packet chain=forward comment="" disabled=no new-packet-mark=rest_up \
    passthrough=yes src-address=wlan/24
add action=mark-packet chain=forward comment="" disabled=no dst-address=wlan/24 \
    new-packet-mark=rest_down passthrough=yes

The packets need first matched by mangling to get into queue

/queue tree
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-limit=4096k \
    name=download packet-mark="" parent=global-out priority=8
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-limit=0 name=\
    monitoring_in packet-mark=prio_in parent=download priority=1 queue=synchronous-default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-limit=3800k \
    name=rest packet-mark=rest_down parent=download priority=8 queue=synchronous-default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-limit=4096k \
    name=upload packet-mark="" parent=global-out priority=8
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-limit=0 name=\
    monitoring_out packet-mark=prio_out parent=upload priority=1 queue=synchronous-default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-limit=3800k \
    name=rest-up packet-mark=rest_up parent=upload priority=8 queue=synchronous-default

Yes I’ve got 4mbit sym @ home

Have fun