Browse Source

Forgot to handle the tcptype parameter

pull/978/head
Timothée Jaussoin 5 years ago
parent
commit
d91ecdf07d
  1. 5
      lib/JingletoSDP.php
  2. 3
      lib/SDPtoJingle.php

5
lib/JingletoSDP.php

@ -305,6 +305,11 @@ class JingletoSDP
}
}
if (isset($payload->attributes()->tcptype)) {
$sdp_media .=
' tcptype '.$payload->attributes()->tcptype;
}
if (isset($payload->attributes()->generation)) {
$sdp_media .=
' generation '.$payload->attributes()->generation;

3
lib/SDPtoJingle.php

@ -404,6 +404,9 @@ class SDPtoJingle
if (isset($args['rport'])) {
$candidate->addAttribute('rel-port', $args['rport']);
}
if (isset($args['tcptype'])) {
$candidate->addAttribute('tcptype', $args['tcptype']);
}
// ufrag to the transport
$s = Session::start();

Loading…
Cancel
Save