osmo-sip-connector/src
Neels Hofmeyr d50637eec6 forward SDP between SIP and MNCC
We have added support for sending SDP via MNCC a long time ago, but so
far the SDP section remained empty. Now, implement actually forwarding
SDP codec information between SIP and MNCC.

The aim is to let the MSC know about all codec choices the remote SIP
call leg has to offer, so that finding a codec match between local and
remote call leg becomes possible.

Store any SDP info contained in incoming SIP and MNCC messages, and send
the stored SDP to the other call leg in all outgoing SIP and MNCC
messages.

In sdp_create_file(), we used to compose fixed SDP -- instead, take the
other call leg's SDP as-is, only make sure to modify the mode (e.g.
"a=sendrecv") to reflect the current call hold state.

The RTP address and codec info in the MNCC structures is now essentially
a redundant / possibly less accurate copy of the SDP info, but leave all
of that as-is, for backwards compat.

There is codec checking that may reject unexpected codecs. The
overall/future aim is to leave all codec checking up to the MSC, but so
far just leave current behaviour unchanged, until we notice problems.

Related: SYS#5066
Related: osmo-ttcn3-hacks Ib2ae8449e673f5027f01d428d3718c006f76d93e
Change-Id: I3df5d06f38ee2d122706a9ebffde7db4f2bd6bae
2023-09-15 04:21:06 +02:00
..
Makefile.am Logging: Log mncc_names in mncc_data() 2018-05-24 16:56:41 +02:00
app.c mncc: Fix use after free on mncc socket disconnection 2017-03-06 21:10:07 +00:00
app.h sip: Register log callback function with sofia-sip 2018-04-15 22:12:42 +02:00
call.c forward SDP between SIP and MNCC 2023-09-15 04:21:06 +02:00
call.h forward SDP between SIP and MNCC 2023-09-15 04:21:06 +02:00
evpoll.c evpoll: Add workaround for usage of IP_RECVERR in sofia-sip 2017-03-08 10:32:13 +01:00
evpoll.h Initial commit for a MNCC to SIP gateway (and maybe auth GW too) 2016-03-21 09:54:37 +01:00
logging.h call/app: Hook the MNCC disconnect event in the app and release calls 2016-03-22 16:32:48 +01:00
main.c Transition to use of 'telnet_init_default' 2023-02-25 17:48:58 +01:00
mncc.c forward SDP between SIP and MNCC 2023-09-15 04:21:06 +02:00
mncc.h vty: Add VTY command about the state of the mncc connection 2016-04-04 20:17:29 +02:00
mncc_protocol.h mncc: rework passing GCR over the MNCC interface 2021-10-27 17:03:42 +03:00
sdp.c forward SDP between SIP and MNCC 2023-09-15 04:21:06 +02:00
sdp.h forward SDP between SIP and MNCC 2023-09-15 04:21:06 +02:00
sip.c forward SDP between SIP and MNCC 2023-09-15 04:21:06 +02:00
sip.h sip/call/mncc: Move source/dest into the call structure 2016-04-04 19:52:41 +02:00
vty.c Cosmetic: Logging and Comments, spelling and clarity changes 2019-08-07 02:16:07 +02:00
vty.h mncc: Add code to manage the mncc connection for CC 2016-03-21 17:00:02 +01:00