krunal09 / csipsimple

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

Set UDP port for local binding to 5060 if wizard Local is created #974

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

I want to do an call from one phone using csipsimple to another phone using 
csipsimple, based on local accounts defined on both handys.

The mobile phones are located in the same WLAN and have IP addresses in this 
network.

One phone is calling with sip:accountname@ipaddress the other phone. This does 
not work. A laptop in the same WLAN running Linphone can be called from one 
handy.

What is the expected output? What do you see instead?
Working ip to ip call.
The other phobe does not ring!

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

Please provide any additional information below.

In https://code.google.com/p/csipsimple/issues/detail?id=904 it was mentioned 
that this should be possible without a sip server.

Original issue reported on code.google.com by domschuermann@gmail.com on 20 May 2011 at 10:27

GoogleCodeExporter commented 9 years ago
You have to set the port manually in settings for UDP local binding. By default 
this port is now random (cause android do things strangely regarding TCP and it 
introduced problem to always use the same port).

But you can for example set 5060 only for UDP, it should be fine. 

Cause actually, what's currently wrong with what you are trying to do is that 
ipaddress should actually be ipaddress:binded_port and this port is random (in 
settings you'll see that it is 0 which mean random). If you set 5060 (which is 
the default when you try user@ipaddress), it will work better :).

So this is just a config issue. 
However, as for user friendliness, I should probably consider to set UDP port 
to 5060 automatically if some create an account using wizard "Local". The 
reason of why it behaves like that is obvious for me but I guess users should 
not have to be aware about that. So, even if that's not a bug, I recycle the 
issue to track the enhancement to automatically bind 5060 locally if some use 
Local wizard.

Original comment by r3gis...@gmail.com on 20 May 2011 at 8:58

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r872.

Original comment by r3gis...@gmail.com on 20 May 2011 at 9:17

GoogleCodeExporter commented 9 years ago
The fix for having this done automatically is now done in revision 872.

If you don't want to wait for the nightly build, you can change the port 
manually as I said previously. I just forgot to mention that you have to switch 
to the ExpertSettingMode (see the wiki page about that), to be able to see the 
local udp port option in network options ;).

Original comment by r3gis...@gmail.com on 20 May 2011 at 9:18

GoogleCodeExporter commented 9 years ago
Many thanks for explaining this and "fixing" it in the trunk version!

Original comment by domschuermann@gmail.com on 23 May 2011 at 1:27

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Is there a tutorial for a LAN,WLAN or WAN configuration with expert mode?, Ive 
been stuck with some testing and Im trying to integrate this with 2 ATA SPA112, 
and 2 android phones,  to make a little lab test. Thank you in advance

Original comment by ONicolas...@gmail.com on 25 Mar 2014 at 10:05