So far, osmo-mgw picked a single codec per side and returned only that entry in the SDP part of MGCP 'OK' responses. Instead, return all of the codec entries that were successfully assigned. The difference is shown in mgcp_test.c: before, only one of the codecs made it through to the 'OK' reponse. Now, all of them are reflected properly. To clients that only ever assign a single codec, there is no change in behavior. Simplify the code: collapse these functions add_rtpmap() add_fmtp() add_audio() codec related part from mgcp_write_response_sdp() and have only add_codecs() add_codecs() simply iterates all assigned codecs to output the 'm=audio' line as well as any 'a=rtpmap' and 'a=fmtp' lines. Also helping to simplify is that we recently dropped the 'fmtp-extra' feature in Icee0cd1f5a751fa760d5a9deca29089e78e7eb93 Related: OS#6293 Change-Id: Ib197ae30a4e732e7dc36700ba8b5841806ea12f7 |
||
---|---|---|
.. | ||
mgcp | ||
mgcp_client | ||
Makefile.am | ||
atlocal.in | ||
testsuite.at |