Translate PT before sending RTP packets (different PT numbers, but same codec on two connections)
When dynamic payload types are used and the call-agent configures two connections with the same codec, but different payload type numbers then osmo-mgw must ensure that the RTP packets are sent with the correct payload type number. This means on the ingress connection the MGW must lookup the codec by the payload type number. On the egress connection the MGW must use the previously looked up codec to determine the matching payload type number that is configured for that codec on the egress connection.
We need: Payload-type number re-writing in osmo-mgw and a TTCN3 testcase that verifies this behavior.
We first need a TTCN3 test for this. As a primer I have added some logic so that the test sets the payload type in the RTP stream as well.
Next we need some mechanism to count packets with a non matching payload type number. As far as I know this is not yet done. We can just add a memeber in the statistics record we already have. Then we would setup a test with two different payload types on both ends and we should be able to detect the problem. Once that is done, we can think of ways to do the payload type translation inside the MGW.
#2 Updated by dexter about 2 months ago
We now have a testcase for the behavior described above. See also:
https://gerrit.osmocom.org/#/c/osmo-ttcn3-hacks/+/10155 MGCP_Test: Test what happens when two ends use different PT
https://gerrit.osmocom.org/#/c/osmo-ttcn3-hacks/+/10154 MGCP_Test: add function to check for RTP err counters
#3 Updated by dexter about 2 months ago
- Status changed from New to In Progress
- % Done changed from 0 to 100