mgcp-client API: there should be a separate mgcp_codec_param for each codec in mgcp_msg.codecs
This was previously discussed in ticket #5723, which got deleted due to an error.
There is a problem we face with the mgcp_client API. mgcp_client_fsm in particular.
The problem is that we are not able to assign different payload type numbers for the same codec. So it is not possible to have the following configuration:
codec: AMR, payload-type: 112
codec: AMR, payload-type: 113
However, this would be necessary in case we want to define AMR once in octet-aligned and once in bandwith-efficient configuration, which brings us to the second problem. Since there is only one mgcp_codec_param struct member "param", which only lets us to define exactly one set of codec parameters we cannot even define two different configurations.
Also in some cases it would be also convenient to circumvent the SDP parsing/generation of osmo-mgcp-client and use a user defined SDP string directly.