TT#115400 explicitly disallow ptime in non-RTP SDPs

Change-Id: Ib1e324861b6a88e1a2f80e4f37a8afa654923a77
(cherry picked from commit e2bf4abee885ee0d8938b8be02df19ca4b4a28e7)
pull/1219/head
Richard Fuchs 5 years ago
parent 1393dbfc9a
commit 5cf4717f89

@ -2656,7 +2656,7 @@ int sdp_replace(struct sdp_chopper *chop, GQueue *sessions, struct call_monologu
insert_crypto(call_media, chop, flags); insert_crypto(call_media, chop, flags);
insert_dtls(call_media, chop); insert_dtls(call_media, chop);
if (call_media->ptime) if (proto_is_rtp(call_media->protocol) && call_media->ptime)
chopper_append_printf(chop, "a=ptime:%i\r\n", call_media->ptime); chopper_append_printf(chop, "a=ptime:%i\r\n", call_media->ptime);
if (MEDIA_ISSET(call_media, ICE) && call_media->ice_agent) { if (MEDIA_ISSET(call_media, ICE) && call_media->ice_agent) {

@ -6956,7 +6956,6 @@ a=T38FaxMaxBuffer:200
a=T38FaxMaxDatagram:180 a=T38FaxMaxDatagram:180
a=T38FaxUdpEC:t38UDPRedundancy a=T38FaxUdpEC:t38UDPRedundancy
a=sendrecv a=sendrecv
a=ptime:20
SDP SDP
(undef, $port_a) = answer('gh 766 reinvite', { (undef, $port_a) = answer('gh 766 reinvite', {
@ -6990,7 +6989,6 @@ a=T38FaxMaxBuffer:262
a=T38FaxMaxDatagram:176 a=T38FaxMaxDatagram:176
a=T38FaxUdpEC:t38UDPRedundancy a=T38FaxUdpEC:t38UDPRedundancy
a=sendrecv a=sendrecv
a=ptime:20
SDP SDP
snd($sock_b, $port_a, rtp(0, 4000, 5000, 0x4567, "\x88" x 160)); snd($sock_b, $port_a, rtp(0, 4000, 5000, 0x4567, "\x88" x 160));

@ -12372,7 +12372,6 @@ a=T38FaxMaxBuffer:200
a=T38FaxMaxDatagram:180 a=T38FaxMaxDatagram:180
a=T38FaxUdpEC:t38UDPRedundancy a=T38FaxUdpEC:t38UDPRedundancy
a=sendrecv a=sendrecv
a=ptime:20
SDP SDP
(undef, $port_a) = answer('gh 766 reinvite', { (undef, $port_a) = answer('gh 766 reinvite', {
@ -12406,7 +12405,6 @@ a=T38FaxMaxBuffer:262
a=T38FaxMaxDatagram:176 a=T38FaxMaxDatagram:176
a=T38FaxUdpEC:t38UDPRedundancy a=T38FaxUdpEC:t38UDPRedundancy
a=sendrecv a=sendrecv
a=ptime:20
SDP SDP
snd($sock_b, $port_a, rtp(0, 4000, 5000, 0x4567, "\x88" x 160)); snd($sock_b, $port_a, rtp(0, 4000, 5000, 0x4567, "\x88" x 160));

Loading…
Cancel
Save