Leave unsupported (non-RTP) protocols alone when translation is requested

Fixes #80
changes/26/1626/1
Richard Fuchs 11 years ago
parent 3520617364
commit 9593519483

@ -2434,11 +2434,14 @@ int monologue_offer_answer(struct call_monologue *other_ml, GQueue *streams,
* but also lets endpoints re-negotiate. */
media->protocol = NULL;
}
/* default is to leave the protocol unchanged */
if (!media->protocol)
media->protocol = other_media->protocol;
/* allow override of outgoing protocol even if we know it already */
if (flags && flags->transport_protocol)
/* but only if this is an RTP-based protocol */
if (flags && flags->transport_protocol
&& other_media->protocol && other_media->protocol->rtp)
media->protocol = flags->transport_protocol;
else if (!media->protocol)
media->protocol = other_media->protocol;
/* copy parameters advertised by the sender of this message */
bf_copy_same(&other_media->media_flags, &sp->sp_flags,

Loading…
Cancel
Save