mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-mgw.git
synced 2025-11-02 13:03:33 +00:00
We have VTY options that allow to set the DSCP value. However, we then call a function to set the TOS bits in the kernel. This is very wrong. The DSCP is only the upper 6 bits of the 8-bit TOS value, and hence we are mussing that translation. As libosmocore now has a helper function osmo_sock_set_dscp(), let's make use of it and don't care about the low-level details. However, this means we need to finally remove the deprecated alias for "rtp ip-tos <0-255>". Closes: OS#5137 Change-Id: I9c18c90273be97aedd2ad212b82f650e35c32851 Depends: libosmocore.git Ia4ba389a5b7e3e9d5f17a742a900d6fd68c08e40
26 lines
436 B
INI
26 lines
436 B
INI
!
|
|
! MGCP configuration example
|
|
!
|
|
e1_input
|
|
e1_line 0 driver dahdi
|
|
e1_line 0 port 0
|
|
mgcp
|
|
bind ip 127.0.0.1
|
|
rtp port-range 4002 16000
|
|
rtp bind-ip 127.0.0.1
|
|
rtp ip-probing
|
|
rtp ip-dscp 46
|
|
bind port 2427
|
|
sdp audio payload number 98
|
|
sdp audio payload name GSM
|
|
number endpoints 512
|
|
loop 0
|
|
force-realloc 1
|
|
rtcp-omit
|
|
rtp-patch ssrc
|
|
rtp-patch timestamp
|
|
trunk 1
|
|
rtp keep-alive once
|
|
no rtp keep-alive
|
|
line 0
|