2016-03-26 19:02:06 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <sofia-sip/sip.h>
|
2019-07-30 13:04:21 +00:00
|
|
|
#include <sofia-sip/sdp.h>
|
2016-03-26 19:02:06 +00:00
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
|
|
|
|
struct sip_call_leg;
|
2016-03-26 21:11:06 +00:00
|
|
|
struct call_leg;
|
2016-03-26 19:02:06 +00:00
|
|
|
|
2019-07-30 13:58:55 +00:00
|
|
|
bool sdp_get_sdp_mode(const sip_t *sip, sdp_mode_t *mode);
|
2016-03-26 19:02:06 +00:00
|
|
|
bool sdp_screen_sdp(const sip_t *sip);
|
2016-03-31 14:28:21 +00:00
|
|
|
bool sdp_extract_sdp(struct sip_call_leg *leg, const sip_t *sip, bool any_codec);
|
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
2019-08-15 04:12:54 +00:00
|
|
|
char *sdp_create_file(struct sip_call_leg *leg, struct call_leg *other, sdp_mode_t mode);
|