Implementing qos

hi
I have a pbx and many hosts on it. some of the users are over the internet.
I want that: when the voip treffic comes to router, it can fix a amount of traffic for voip and in other time when there is no voip traffic the bandeidth will be free. How can I do that?

What VoIP protocol are you using?

Identify the inbound traffic with a mangle rule and then set up a queue to prioritize it. Take a look at the MikroTik wiki for help on how to do mangle rules and queues.

I am using sip protocol. I can mark my packets with mangle. but I can not set up quees.