The problem is that this L7 regexp is matching only couple first packets of VoIP connection. Do you have any idea how to mark all VoIP packets. I’m using PAP2T phone adapter (G726-32 codec)
Thank you for the reply. This is not solving the problem. I have no idea what kind of phone adapter my customer will use and this is only one side solution.
So I have that situation:
VoIP adapter–switch–MT_Router(CPE)–bridge…bridge–Traffic_Manager–MT_Router(edge router)
In order to make correct QOS I need to mark packets on both side:
-CPE
-edge router
Provided that your layer 7 expression actually works, set a connection-mark based on it, rather than a packet mark. The connection mark will be available for all packets in a connection.
The first rule will only match at the beginning of the connection, but the second rule will match on all packets in connection that at any time were matched by the first rule.
Though that is going to be expensive as hell to run on the router. What you have does a regular expression inspection on the first packets of EVERY connection. At the very least you should change that so it only tries to match UDP connections, ideally you’d whittle that down further.