Comments (13)
Also, I am using Debian Jessie as my OS and it is x86.
Another tidbit, I see the stun Bind requests being sent the machine requesting the Echo test but there is no success reply...It seems that the reply, even through it is an internal session is trying to go to the public IP address instead of the local one.
Meaning, the Binding Request originates from the internal IP but Chrome tries to respond to the public IP even though they are behind the same NAT...Interesting....
from janus-gateway.
Well, it works great if I turn off it being behind a NAT...Is there a way for it to communicate with machines behind the same NAT and to ones outside its NAT?
I am gonna start digging around. Let me know if you guys find anything first.
from janus-gateway.
Is the gateway deployed behind a NAT? If so, you need to either specify a public IP to be used in negotiations (assuming the same ports are going to be used locally and on the NAT) or configure the gateway to use a STUN server as well. Both things can be done via command line and configuration.
from janus-gateway.
The STUN solution is probably the way to go to cover users both within and outside the NAT.
from janus-gateway.
Yes, it is deployed behind a NAT and I have the issue only when I do use a STUN server and try to access from behind the same NAT. I will try a different STUN server than googles public one to see if that helps.
Here is my current config for nat
[nat]
;public_ip = 1.2.3.4
stun_server = stun.l.google.com
stun_port = 19302
from janus-gateway.
No dice, tried with stun.ekiga.net
, stun.iptel.org
, numb.viagenie.ca
and still getting the same ICE failed error.
from janus-gateway.
Sorry, traveling now, will look into that as soon as I get back home.
Il 25/lug/2014 13:39 "Computician" [email protected] ha scritto:
No dice, tried with stun.ekiga.net, stun.iptel.org, numb.viagenie.ca and
still getting the same ICE failed error.—
Reply to this email directly or view it on GitHub
#46 (comment)
.
from janus-gateway.
Safe travels! I will continue digging myself.
from janus-gateway.
The issue may be that, when specifying a STUN server, the public_ip
variable is set, that in turn replaces the host addresses with its value, which is obviously wrong. It should only overwrite it when the public IP is specified as part of the configuration, and not when retrieved via STUN.
Can you try commenting this line:
https://github.com/meetecho/janus-gateway/blob/master/ice.c#L194
and see if that works for you?
from janus-gateway.
PS: And this one as well:
https://github.com/meetecho/janus-gateway/blob/master/ice.c#L187
from janus-gateway.
That worked for internal sessions! I have not tested yet with external IPs yet(meaning clients behind a different NAT.
from janus-gateway.
Good! If you configured a STUN server, it should work for external users as well, through the srflx
candidates. Let me know if that fixes it and I'll push the fix as soon as I do the same for a couple of other bugs I'm working on.
from janus-gateway.
Yes, external still works with that change! Thank you very much
from janus-gateway.
Related Issues (20)
- [1.x] Sip session get stuck HOT 12
- No call back triggering in 'onlocalstream' HOT 2
- [1.x] Streaming plugin does not send "started" event to event handlers HOT 2
- Add unauthenticated no-payload ping endpoint for health checks HOT 3
- Build fails with latest libsrtp version HOT 9
- [0.x] [janus.js] black screen or streaming stops periodically when connected through WebRTC (Chromium only) HOT 4
- [1.x] Issue with outbound calls for SIP Gateway HOT 3
- [1.x] videoroom: remote publisher doesn't release RTP/RTCP ports HOT 10
- [1.x] Does AudioBridge supports multiple participant join from RTP in a single room . Getting `Already in a room` Error for 2nd participant HOT 3
- [1.x] rtp_port_range not being respected HOT 2
- [1.x] Crash / segfault on 1.2.2 HOT 5
- [1.x] system under heavy load stops to handle calls wia ws api HOT 14
- [1.x] Crash / segfault on 1.2.3 HOT 10
- [1.x] inconsistency happen when more than 6 users join at same time HOT 2
- [1.x]inconsistency happen when more than 6 users join at same time with different browsers (web and mobile) HOT 3
- [1.x] videoroom: support of string_ids/string_ids_user HOT 2
- [1.x] Increased event handlers SIP logging buffer size one more time or make it configurable HOT 5
- [1.x] build failure on macos HOT 3
- [0.x] Possible memory leaks found with libasan latest HOT 12
- [1.x] SIP plugin "Couldn't connect audio RTP? -- 22 (Invalid argument)" HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from janus-gateway.