need hep with traffic priority rules

1.gif
This is a problem that is bugging me for some time.
I have two RB450 devices, in two different cities,and set-up as in picture.
Phone gw essentially transforms standard two-wire phone signal into packets and sends it to PBX.
I made a pptp connection between two routers and a route to pbx.
trouble is, this works just fine if no one uses bandwidth. As soon as someone starts working
the connection breaks, and all sort of things.
I do not have ANY experience with Mikrotik, except some basics, and I am unable to grasp those
queues and mangles.
Is there a way to, say, cut of a part of bandwidth for phone connection, or even better, to reserve
that piece of bandwidth when this connection is initiated?

Please help.

I tried with some settings found online, and marked traffic destined for pbx
and with queues set the priority for those packets, but it is still not working properly.

Did you marked anything else?

Did you build a queue tree for downstream and upstream? You need to set total limit for your PPTP connection.

It will take some time to properly set up QoS. Do not make it more complicated than it needs to be.

I usually mark everything, and then only important things like ACK/NACK Packets, VOIP, and other latency sensitive traffic.

Read this dokument before you start.

http://mum.mikrotik.com/presentations/CZ09/QoS_Megis.pdf

Thak you, I will try this
I marked all packed originating or destined for PBX or phone gateway with packet mark “phone”
and made a queue for that packet mark with priority 2

I’m not an expert on this topic, but I’m quite sure that you need to mangle all other traffic too. Otherwise, prioritizing traffic to you PBX will have no effect.