You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
No audio when overwriting "peerConnectionOptions" in "sessionDescriptionHandlerOptions" #484
I'm using version 0.8.4 and I found that if I try to overwrite peerConnectionOptions - I get no audio on both caller and callee. But once I remove peerConnectionOptions from sessionDescriptionHandlerOptions seems to be working.
Actually re-reading the issue description I think I have the answer to my question. Correct me if I'm wrong but as far as I can tell you are passing the peerConnectionOptions as part of the call to accept(), not in the sessionDescriptionHandlerFactoryOptions when creating the UA, right?
If so, this causes the peer connection to be torn down and recreated, which might be why you are experiencing these issues. Could you try passing the peerConnectionOptions you want at the UA construction, inside sessionDescriptionHandlerFactoryOptions and report back whether this changes the behaviour?
Eric : I'm really not comfortable with these two blocks of code, especially the one in setDescription:
I have a feeling that this can result in tearing down the peer connection and setting it up again without notifying the remote party. As a result you may end up with a different view of which peer connection should be used to exchange media.
I did set sessionDescriptionHandlerOptions in both UA(), in invite() and in accept().
Issue is fixed if i remove options with sessionDescriptionHandlerOptions from invite() and accept() and keep it only in UA().
Thanks!
Ok at the very least we need to update the documentation, but I'm also not convinced that it's a good idea to offer peerConnectionOptions in accept / invite
Eric, before we invest additional resources and complexify the code even more : how confident are we that the usecase which was addressed by allowing the PC to be re-created actually still works? As we've already had two reports of this codepath breaking "normal" usecases, I'd say we need to have a really good justification for retaining this code, and at least one unit test which illustrates/verifies the code works as expected.
I did set sessionDescriptionHandlerOptions in both UA(), in invite() and in accept().
Issue is fixed if i remove options with sessionDescriptionHandlerOptions from invite() and accept() and keep it only in UA().
Thanks!
@jlaine How did you do this? In the documentation, I only find the option "sessionDescriptionHandlerFactoryOptions". I can't find the possibility to add the "sessionDescriptionHandlerOptions " in the constructor of the UA. (I get same error, no audio)
Activity
egreenmachine commentedon Nov 21, 2017
Can you include logs? The
iceCheckingTimeoutmay be too low and you are not getting any usable candidates.VadimDez commentedon Nov 22, 2017
I've done identical calls with two different configs :
and
Both logs look the same like this with difference that the second has no audio in both directions
egreenmachine commentedon Nov 22, 2017
I need both sets of logs. Working and not working to track this down.
VadimDez commentedon Nov 23, 2017
working audio and no overwrite
jlaine commentedon Nov 24, 2017
I am really puzzled by this issue. Do you pass any options when calling accept ()?
jlaine commentedon Nov 24, 2017
Actually re-reading the issue description I think I have the answer to my question. Correct me if I'm wrong but as far as I can tell you are passing the peerConnectionOptions as part of the call to accept(), not in the sessionDescriptionHandlerFactoryOptions when creating the UA, right?
If so, this causes the peer connection to be torn down and recreated, which might be why you are experiencing these issues. Could you try passing the peerConnectionOptions you want at the UA construction, inside sessionDescriptionHandlerFactoryOptions and report back whether this changes the behaviour?
Eric : I'm really not comfortable with these two blocks of code, especially the one in setDescription:
SIP.js/src/WebRTC/SessionDescriptionHandler.js
Line 117 in b2a2206
SIP.js/src/WebRTC/SessionDescriptionHandler.js
Line 240 in b2a2206
I have a feeling that this can result in tearing down the peer connection and setting it up again without notifying the remote party. As a result you may end up with a different view of which peer connection should be used to exchange media.
VadimDez commentedon Nov 24, 2017
I did set
sessionDescriptionHandlerOptionsin bothUA(), ininvite()and inaccept().Issue is fixed if i remove options with
sessionDescriptionHandlerOptionsfrominvite()andaccept()and keep it only inUA().Thanks!
jlaine commentedon Nov 24, 2017
Ok at the very least we need to update the documentation, but I'm also not convinced that it's a good idea to offer peerConnectionOptions in accept / invite
egreenmachine commentedon Nov 24, 2017
Agreed. Those options should at a minimum compare to what we already have and then determine if it should tear down the peer connection or not.
Documentation ticket for myself: https://gitlab.com/onsip/sipjs.com/issues/6
jlaine commentedon Nov 27, 2017
Eric, before we invest additional resources and complexify the code even more : how confident are we that the usecase which was addressed by allowing the PC to be re-created actually still works? As we've already had two reports of this codepath breaking "normal" usecases, I'd say we need to have a really good justification for retaining this code, and at least one unit test which illustrates/verifies the code works as expected.
VandendriesscheWard commentedon Apr 3, 2019
@jlaine How did you do this? In the documentation, I only find the option "sessionDescriptionHandlerFactoryOptions". I can't find the possibility to add the "sessionDescriptionHandlerOptions " in the constructor of the UA. (I get same error, no audio)