You can configure several properties that specify how the interface handles voice traffic compression by including the compression statement:
-
compression {
-
-
rtp {
-
f-max-period number;
-
maximum-contexts number <force>;
-
-
port {
- minimum port-number;
- maximum port-number;
- }
-
queues [ queue-numbers ];
- }
- }
You can include this statement at the following hierarchy levels:
You can configure the following properties at the [edit interfaces interface-name unit logical-unit-number compression rtp] hierarchy level:
- [edit interfaces interface-name unit logical-unit-number compression rtp]
-
f-max-period number;
- [edit interfaces interface-name unit logical-unit-number compression rtp]
-
maximum-contexts number <force>;
The optional force statement requires the PIC to use the value specified for maximum RTP contexts, regardless of the negotiated value. This option allows the software to interoperate with JUNOS releases that base the RTP context value on link speed.
-
port {
- minimum port-number;
- maximum port-number;
- }
Values for port-number can range from 0 through 65,535. Within the specified range, the router software applies RTP compression to the traffic.
-
queues [ queue-numbers ];
You can specify q0, q1, q2, and q3 as queue numbers.
The router applies RTP compression on the traffic in the specified queues.
![]() |
Note: If you specify both a port range and one or more queues, compression takes place if either condition is met. |