plugin XEP-0167, XEP-0176: transport-info and ICE candidate sending are delayed if session is not active yet
This commit is contained in:
parent
09d88cdfe2
commit
d60b79b18f
1 changed files with 125 additions and 108 deletions
|
|
@ -439,12 +439,11 @@ def parse_sdp(sdp: str) -> dict:
|
|||
try:
|
||||
ice_candidates = first_content["transport_data"]["candidates"]
|
||||
except KeyError:
|
||||
log.warning("missing candidates in SDP")
|
||||
else:
|
||||
for idx, content in enumerate(all_media.values()):
|
||||
if idx == 0:
|
||||
continue
|
||||
content["transport_data"].setdefault("candidates", ice_candidates)
|
||||
ice_candidates = []
|
||||
for idx, content in enumerate(all_media.values()):
|
||||
if idx == 0:
|
||||
continue
|
||||
content["transport_data"].setdefault("candidates", ice_candidates)
|
||||
|
||||
return call_data
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue