Theo <theo…@chiark.greenend.org.uk> writes:
> Richmond <dnom…@gmx.com> wrote:
>> Theo <theo…@chiark.greenend.org.uk> writes: >>
>> > >> > That also means that two phones behind the same NAT may work if one >> > registers on .116 and the other on .118, as the SIP ALG can create >> > distinct firewall rules for them, but if the round-robin DNS >> > happens that they both land on the same IP then one may not work. >> >
>> >> I don't know if it would help but I have two phones connected to the >> router, and in the settings on the router under SIP service provider, >> I have two different Outbound Proxy Ports, 5061 and 5062. SIP ALG is >> enabled. But the two phones use different VOIP providers, one uses AA >> the other uses Voipfone. It all seems to work.
> > The problem is if both phones are talking to the same service provider > IP. When the service provider IP wants to make a connection towards > you, your router can't tell which phone to forward it to. > > If you have different service provider IPs (which you will using > different companies), the router can use the source IP to work out > which phone previously contacted that IP and so forward it correctly. > > ie if phone 1 last talked to the A&A server, then an incoming > connection from the A&A server should be forwarded to phone 1. If > phone 2 talked to the Voipfone server, incoming connections from > Voipfone should go to phone 2. But if phone 2 was also talking to the > same A&A server, the router doesn't know whether to send the > connection to phone 1 or phone 2. > > The wrinkle above is that the 'same server' may not actually be the > same IP due to DNS load-balancing. If phone 1 is talking to .116 and > phone 2 to .118 then the router can tell them apart and everything > works. But if phone 2 looked up voiceless.aa.net.uk and got .116 > which phone 1 was already talking to, then the router can't tell them > apart. Maybe by default it always sends the incoming connection to > the first device it saw (phone 1), in which case phone 2 won't get > incoming audio. > > There are lots of variables and if you can't packet-capture the WAN > port of the router it's hard to work out what's happening. > > Theo
I've installed Linphone on an Amazon tablet and using this, I was able to phone my home phone number from my home phone number and leave a message. To get Linphone working though I had to disable IPv6. So I think this verifies that SIP ALG is kicking in with IPv4, but IPv6 is blocked by the firewall because I haven't set up any rules. It might be a good way to test things though.