I am trying to integrate Sinch in one of our projects.
I am trying to call from WEB to ANDROID app..
The connection is getting successfully established. But no video is displayed and also call is getting disconnected automatically in 9 to 10 secs...
This is not happening when I am calling from Android App to Web..
I am following code from their Docs for Video Calling.
Log for call:
Notification { progress=0, message="Successfully added proxy ICE candidate", object=mozRTCIceCandidate}
Notification { progress=0, message="Successfully sent JOINED", object=g}
Notification { progress=0, message="Call changing state to ESTABLISHED", object=undefined}
Notification { progress=0, message="Call was un-muted using unmute().", object=undefined}
Notification { progress=0, message="WebRTC: Connection state changed", object=Event iceconnectionstatechange}
Error { name="SinchError", domain=-1, code=1001, more...} // code: 1001, domain: -1, message: "Ice connection failed. Hanging up call!"
Notification { progress=0, message="Call HANGUP Received", object=undefined}
-- ICE failed, see about:webrtc for more details
MXPLog { message="Added meta data to MXP message", object=r}
MXPLog { message="Identified Encoding Key", object=r}
MXPLog { message="Split message into frames as needed", object=r}
MXPLog { message="Identified Tx Channels", object=r}
MXPLog { message="Transmitting [channel, frame]", object=[2]}
Notification { progress=0, message="WebRTC: Connection state changed", object=Event iceconnectionstatechange}
Notification { progress=0, message="WebRTC: Signaling state change", object=Event signalingstatechange}
Why I am getting Ice connection failed. Hanging up call!
error..??
I am using Mozilla Firefox to test functionality...
Thanks in advance for your help. I am stuck here...
I worked for hours trying to solve this, at the end I discovered this was caused when both web and android is on the same network (when coding they usually are). It seems sinch doesn't work on same lan.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With