diff --git a/daemon/sdp.c b/daemon/sdp.c index cba216af5..f2a7b15f6 100644 --- a/daemon/sdp.c +++ b/daemon/sdp.c @@ -2656,7 +2656,7 @@ int sdp_replace(struct sdp_chopper *chop, GQueue *sessions, struct call_monologu insert_crypto(call_media, chop, flags); 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); if (MEDIA_ISSET(call_media, ICE) && call_media->ice_agent) { diff --git a/t/auto-daemon-tests-reorder.pl b/t/auto-daemon-tests-reorder.pl index e8fc65fe3..5c941c377 100755 --- a/t/auto-daemon-tests-reorder.pl +++ b/t/auto-daemon-tests-reorder.pl @@ -6956,7 +6956,6 @@ a=T38FaxMaxBuffer:200 a=T38FaxMaxDatagram:180 a=T38FaxUdpEC:t38UDPRedundancy a=sendrecv -a=ptime:20 SDP (undef, $port_a) = answer('gh 766 reinvite', { @@ -6990,7 +6989,6 @@ a=T38FaxMaxBuffer:262 a=T38FaxMaxDatagram:176 a=T38FaxUdpEC:t38UDPRedundancy a=sendrecv -a=ptime:20 SDP snd($sock_b, $port_a, rtp(0, 4000, 5000, 0x4567, "\x88" x 160)); diff --git a/t/auto-daemon-tests.pl b/t/auto-daemon-tests.pl index 781a4a883..5b0dd40b9 100755 --- a/t/auto-daemon-tests.pl +++ b/t/auto-daemon-tests.pl @@ -12372,7 +12372,6 @@ a=T38FaxMaxBuffer:200 a=T38FaxMaxDatagram:180 a=T38FaxUdpEC:t38UDPRedundancy a=sendrecv -a=ptime:20 SDP (undef, $port_a) = answer('gh 766 reinvite', { @@ -12406,7 +12405,6 @@ a=T38FaxMaxBuffer:262 a=T38FaxMaxDatagram:176 a=T38FaxUdpEC:t38UDPRedundancy a=sendrecv -a=ptime:20 SDP snd($sock_b, $port_a, rtp(0, 4000, 5000, 0x4567, "\x88" x 160));