versatica / JsSIP

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

[TypeError: null is not an object (evaluating 'constraints.optional')] when call sipUa.call #814

Closed alexivaner closed 1 year ago

alexivaner commented 1 year ago

Hi everyone, I have a problem when trying to run sipUA.call. Below is my configuration, until now I am still not sure what's wrong.

          let options = {
                    "eventHandlers": {
                        failed: e => _eventCallback("failed", e),
                        ended: e => _eventCallback("ended", e),
                    },
                    "mediaConstraints": { audio: true, video: true },
                };
                this.sipUA.call(callNumber, options);

Here is the log:

[TypeError: null is not an object (evaluating 'constraints.optional')]

ibc commented 1 year ago

Please use the mailing list for usage questions.