Hi again,
i did something, can someone check my config to see if this is ok?
ether1=LAN
ether2=WAN
x.x.x.x ip address of sip voip provider
The goal is to reserve at least 500kbps for voip traffic (for about 5 simultaneous calls) from client to provider and vise versa. Will this code do the trick? If not please provide the correct one.
Client softphone are marking sip and rtp with DSCP 40 so i mark that traffic with dscp value in mangle and traffic from other direction i marked with source ip (voip provider ip address).
/ip firewall mangle
add action=mark-connection chain=prerouting comment="" disabled=no dscp=40 in-interface=ether1 new-connection-mark=conn_voip_lan passthrough=yes
add action=mark-packet chain=prerouting comment="" connection-mark=voip disabled=no new-packet-mark=packet_voip_lan passthrough=no
add action=mark-connection chain=prerouting comment="" disabled=no in-interface=ether2 new-connection-mark=conn_voip_wan passthrough=yes src-address=x.x.x.x
add action=mark-packet chain=prerouting comment="" connection-mark=conn_voip_wan disabled=no new-packet-mark=packet_voip_wan passthrough=no
/queue tree
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=500k max-limit=1024k name=client_voip packet-mark=packet_voip_lan parent=global-in priority=5 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=500k max-limit=1024k name=provider_voip packet-mark=packet_voip_wan parent=global-in priority=5 queue=default