versatica / JsSIP

JsSIP, the JavaScript SIP library
https://jssip.net
Other
2.4k stars 739 forks source link

No INVITE sent if mediaConstraints: { audio: false, video: false } #812

Closed a-backman closed 1 year ago

a-backman commented 1 year ago

I'm trying to place a one way video call. My CallOptions are:

{
    rtcConstraints: {
        offerToReceiveAudio: true,
        offerToReceiveVideo: true,
    },
    mediaConstraints: { audio: false, video: false },
    sessionTimersExpires: 120,
    pcConfig: {
        iceServers: [
            {
                urls: [
                    'stun:stun.l.google.com:19302',
                    'stun:stun1.l.google.com:19302'
                ]
            }
        ]
    }
}

But if both mediaConstraints.video and mediaConstraints.audio are set to false, the INVITE isn't sent.

ibc commented 1 year ago

Please use the mailing list for questions. And also include full console logs.