osmo-mgw/include/osmocom/mgcp
Philipp Maier 4c4d227624 mgcp_codec: fix codec decision
Unfortunately OsmoMGW was never really tested with multiple different
codecs on either side of the connection. While OsmoMSC and OsmoBSC only
assign exactly one codec on each side this has never been a problem,
however it might become a problem when a call agent assigns multiple
codecs on one side. This has been observed in a setup where OsmoMGW had
one leg towards an external call agent. Also due to recent upgrades to
the TTCN3 tests we are now able to simulate different codecs on both
sides to pinpoint issues.

Testing has shown that OsmoMGW has difficulties with multiple codecs.
The reason for this is that the function that makes the codec decision
was not fully finished. So let's finish the codec decision function and
let's also use that decision when patching the payload type of outgoing
RTP packets.

Related: OS#5461
Change-Id: I6c3291f825488e5d8ce136aeb18450156794aeb5
2023-05-22 11:18:45 +02:00
..
Makefile.am ctrl: take both address and port from vty config 2022-12-20 19:00:45 +03:00
debug.h Add Osmux log category 2022-09-09 16:04:19 +02:00
mgcp.h osmux: Clean up mgcp_config osmux fields 2022-10-13 12:36:44 +02:00
mgcp_codec.h mgcp_codec: fix codec decision 2023-05-22 11:18:45 +02:00
mgcp_common.h osmo-mgw: refactor endpoint and trunk handling 2020-06-12 17:08:41 +02:00
mgcp_conn.h osmux: Unify rtp_conn osmux type into a single type 2022-10-03 17:16:16 +02:00
mgcp_e1.h mgcp_e1: be more frugal withe E1 line resources 2023-02-22 13:03:54 +01:00
mgcp_endp.h mgcp_endp: cosmetic move mgcp_endp_release to the end 2023-02-09 13:37:03 +01:00
mgcp_iuup.h Initial IuUP support using proper FSMs 2022-02-07 17:50:31 +00:00
mgcp_msg.h fix missing includes and forward declarations 2021-09-10 17:24:45 +02:00
mgcp_network.h osmux: Make sure RTP AMR feed to osmux is in octet-aligned mode 2022-10-26 11:56:05 +02:00
mgcp_protocol.h mgcp_protocol: get rid of policy_cb and change_cb 2021-08-05 10:00:59 +02:00
mgcp_ratectr.h osmux: Add connection and global rate counters 2022-09-22 21:44:46 +02:00
mgcp_sdp.h mgw: clean up codec negotiation (sdp) 2018-06-23 11:39:44 +00:00
mgcp_stat.h get rid of mgcp_internal.h 2020-08-10 22:56:59 +02:00
mgcp_threads_queue.h add a lock-free bounded spsc interthread queue 2021-11-17 21:20:08 +00:00
mgcp_trunk.h mgcp_codec: fix codec decision 2023-05-22 11:18:45 +02:00
osmux.h osmux: Rename function and pass msgb directly to it 2022-10-26 11:56:05 +02:00
vty.h mgcp_vty: add user attributes to configuration commands 2020-10-08 19:26:51 +02:00