Sanjivkumarroshan / csipsimple

Automatically exported from code.google.com/p/csipsimple
0 stars 0 forks source link

VPN: Does not listen at tun0, don't answer incoming calls #2771

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Use VPNCILLA (from store) to open an VPN to a FritzBox
2. Route only the Network 192.168.178.0/24 over the vpn
3. Use the fritzbox Profile from csipsimple

What is the expected output? What do you see instead?
Outgoing calls working, incoming not. WLAN working fine
I see no listening port at the tun0 device. Only on 0.0.0.0 
Internal SIP Client from Android 4.4.4 working fine
Tried with UDP and TCP.

What version of the product are you using? On what device / operating
system?
Latest from store, Nexus 5, Android 4.4.4

Please provide any additional information below.

Original issue reported on code.google.com by zahn...@gmail.com on 8 Sep 2014 at 4:28

GoogleCodeExporter commented 9 years ago
Was CSipSimple started before or after vpn connection?

For cross platform reasons the underlying sip stack does not bind 0.0.0.0 but 
instead each interface found at startup. It also allows to restrict access if 
necessary.

However, as android system in 4.x doesn't inform third party apps about 
connectivity changes when a VPN connection is setup, it's not (simply) possible 
for csipsimple to bind this new interface.
However, in order to workaround this case using 4.x you can enable the option 
to check network changes.
To do so :
1- enable expert global setting mode : 
https://code.google.com/p/csipsimple/wiki/ExpertSettingMode?wl=en
2- in settings > network set the option to check network changes each x minutes 
to a value you think good.

Original comment by r3gis...@gmail.com on 8 Sep 2014 at 5:09

GoogleCodeExporter commented 9 years ago
Hi,
about the 1th question;
I think, it was started before VPN. I need it on WLAN and VPN connection.

The Google-Client simply bind an dynamic port on all interfaces, including the 
mobile ip address.
I had checked it using "Android Status". It detects changing between mobile and 
WIFI network. 

With CSIPSiple, I had seen an listening TCP dynamic port (SIP using TCP) on 
0.0.0.0, not on other interfaces.

I may try it again next weekend. Is it ok?

Original comment by zahn...@gmail.com on 8 Sep 2014 at 6:27