RohitJPatil / sipdroid

Automatically exported from code.google.com/p/sipdroid
GNU General Public License v3.0
0 stars 1 forks source link

Support for proxy ( siproxd, etc ) #237

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
--
What steps will reproduce the problem?
Wifi with a NAT. I have a router that forwards all SIP/RTP ports to a  
siproxd, and few SIP phones (grandstream, etc) that connect using the 
proxy. 
Sipdroid doesn't seem to have any option for that.

Looking at the code, it looks like there is a method 
SipdroidEngine.setOutboundProxy() which seem to do what is needed, using 
the "dns" setting. There is also code to add the dns to the settings - the 
only thing missing is an entry in preferences.xml. 
Any reason for not having it exposed ? I can test it and submit a patch if 
it works. 

What version of the product are you using? On what operating system?

Market version - now testing with SVN head. 

Which SIP server are you using? What happens with PBXes?

gizmo, SER, asterisk.  

Which type of network are you using?

Wifi. 

Please provide any additional information below.

Original issue reported on code.google.com by costin on 16 Dec 2009 at 7:36

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Never mind - found the solution: set Server to the IP address of the 
siproxd-running, 
and domain to proxy01.sipphone.com. Seems to work. 

Changing the bug to 'better documentation for the "domain" option and how to 
get it to 
work with a proxy'

Original comment by costin on 18 Dec 2009 at 6:07

GoogleCodeExporter commented 8 years ago

Original comment by pmerl...@googlemail.com on 18 Dec 2009 at 9:27

GoogleCodeExporter commented 8 years ago
coustin: Are you sure this is true support for a proxy? I am trying to get
sipsorcery.com to work for outgoing calls and I am unable to. Please elaborate 
on
your solution with more variables and less specific values.

Cheers

Original comment by osirisx11@gmail.com on 18 Dec 2009 at 10:08

GoogleCodeExporter commented 8 years ago
My network: 
1. stupid ATT DSL router ( not modem ). Firewall set to forward most UDP/TCP to 
linux 
box
2. Linux box - running siproxd, mostly out-of-box config. For IP - it has a 
dyndns 
client, siproxd uses the dyndns hostname to rewrite. 
3. a grandstream box - with outbound proxy set to the IP of the linux box
4. Android phone running sipdroid, with Server = IP of the linux box, 
domain=proxy01.sipphone.com, different username/password from the grandstream. 

Also seems to be important to login with the phone number as username, and dial 
the 
number - I couldn't get the non-phone username to work, which makes sense since 
siproxd only knows about one username. 

So far I can receive and make calls - I tried with the google voice number and 
a 
friend. I'll keep testing - there is some instability, maybe because I keep 
making 
changes. I'm trying to retire the grandstream box and only use the android(s).

Let me know if you want additional details. Turning verbose logging ( including 
UDP 
dumps ) in siproxd helped a lot. 

Original comment by costin on 19 Dec 2009 at 6:16