Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeMismatchError when making a call #1

Closed
dnotivol opened this issue Jan 17, 2014 · 2 comments
Closed

TypeMismatchError when making a call #1

dnotivol opened this issue Jan 17, 2014 · 2 comments

Comments

@dnotivol
Copy link

Hello,

I tried to contact the list, but I'm getting the email returned, so trying here...

I'm testing JSCommunicator in an Ubuntu 13.10 machine, and I'm getting the account registered in a kamailio server. But when I try to make an audio call, I get an error, a JS exception, and I'm kind of stuck with it.

Firefox and Chromium show different errors, but for the same script (JSComm.js) and line (29).
Moreover, I always get this message in the web: "ERROR: failed to start call, check that microphone/webcam are connected, check browser security settings, peer may not support compatible codecs", but no popup or browser message appears requesting the access to the microphone.

Thanks in advance.

  • When using Firefox, I get this:

"make_call failed: Error: RTCPeerConnection constructor passed invalid RTCConfiguration - malformed URI: " JSComm.js:29

  • When using Chromium, I get this error:

make_call failed: TypeMismatchError: The type of an object was incompatible with the expected type of the parameter associated to the object. JSComm.js:29
DOMException {message: "The type of an object was incompatible with the ex…d type of the parameter associated to the object.", name: "TypeMismatchError", code: 17, stack: "Error: The type of an object was incompatible with…ttp://localhost/JSCommunicator/jquery.js:5:10866)", INDEX_SIZE_ERR: 1…}
code: 17
message: "The type of an object was incompatible with the expected type of the parameter associated to the object."
name: "TypeMismatchError"
stack: "Error: The type of an object was incompatible with the expected type of the parameter associated to the object.↵ at Object.RTCMediaHandler.init (http://localhost/JSCommunicator/JsSIP.js:3389:27)↵ at Object.RTCMediaHandler (http://localhost/JSCommunicator/JsSIP.js:3283:8)↵ at Object.RTCSession.connect (http://localhost/JSCommunicator/JsSIP.js:4192:26)↵ at Object.UA.call (http://localhost/JSCommunicator/JsSIP.js:5170:11)↵ at Object.window.JSCommManager.make_call (http://localhost/JSCommunicator/JSComm.js:29:250)↵ at Object.window.JSCommUI.make_call (http://localhost/JSCommunicator/JSComm.js:37:280)↵ at HTMLInputElement. (http://localhost/JSCommunicator/JSComm.js:32:479)↵ at HTMLInputElement.x.event.dispatch (http://localhost/JSCommunicator/jquery.js:5:14129)↵ at HTMLInputElement.v.handle (http://localhost/JSCommunicator/jquery.js:5:10866)

Regards,
David N.

@dpocock
Copy link
Member

dpocock commented Jan 18, 2014

Which JsSIP version are you using?

Can you try each of these:

a) the latest upstream development release

b) the version in use at https://rtc.debian.org

@dnotivol
Copy link
Author

I was using the devel version download from JsSIP (http://jssip.net/download/jssip-devel.js), as read in the JsCommunicator quick start.
I downloaded the release running in rtc.debian.org as suggested and now it's working fine.
Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants