This is going to get a bit technical…
I’m not sure if this is a bug or a settings problem. What it does is keep sending UDP OPTIONS packets to 81.23.228.140 (sip2sip.info) even though I have “outboundproxy=proxy.sipthor.net” set in sip.conf.
The OPTIONS packet to sip2sip.info does not get a OK reply like it should. It’s going to port 5060 like it should, I’m watching this via tcpdump.
Shouldn’t it know that we are going to use proxy.sipthor.net as outbound so it should send keep alive packets there? (I am pretty sure that’s what the OPTION packets are mostly for, and keeping NAT routes for UDP open)
The other thing, this site page wiki.sip2sip.info/projects/sip2sip/wiki/SipDevicesAsterisk
Shows that I should add a bunch of extra sections for host=81.23.228.129 (proxy.sipthor.net) and when I do that, now it starts sending more OPTIONS packets out, one to each of the proxy.sipthor.net IP addresses (there are 3).
That’s fine, because then it establishes NAT routes for those IPs and I am sure it works but that’s a lot of extra traffic they don’t need and I don’t need. I don’t think they are displaying a good way to configure Asterisk.
All the OPTIONS packets sent to proxy.sipthor.net get a OK response as it should. And the REGISTRATION is also sent to proxy.sipthor.net and that gets a OK and I am registered (at least the first time, see below).
So, is there something wrong with the way Asterisk is handling all this or what?
I’ve tried some other combinations of host= but sip2sip.info servers seem to want to see "UUUUU@sip2sip.info" in all the packets like REGISTRATION so I have to keep that set to “host=sip2sip.info”.
I have also tried it without “outboundproxy=proxy.sipthor.net” and that won’t get a registration at all because the REGISTRATION packets go to sip2sip.info only.
Info:
I am behind several NAT routers.
sip.conf (important lines)
[sip2sip.info]
type=peer
host=sip2sip.info
outboundproxy=proxy.sipthor.net
canreinvite=no
secret=XXXXX
qualify=yes
nat=yes
insecure=invite,port
fromuser=UUUUUU
defaultuser=UUUUUU
remotesecret=XXXXX
and I added the below to see what happens and if I do it sends more OPTION packets to thos IPs where it DOESN’T do that at all if I don’t add these, these are all theproxy.sipthor.net IPs :
[sp2sip-1]
type=peer
host=81.23.228.129
[sip2sip-2]
type=peer
host=81.23.228.150
[sip2sip-3]
type=peer
host=85.17.186.7
The second problem I have is that the first registration goes through OK after starting up Asterisk, but the next automatic one in 5 minutes fails with:
Probably a DNS error for registration to UUUUUU@sip2sip.info, trying REGISTER again (after 20 seconds)
Of course DNS is working fine and I can do a look up and it did that same lookup the first time it tried and got the proper IPs that time. I have “enable=yes” in dnsmgr.conf
And this I don’t understand at all since everything is OK the first time.
edit: forgot to say I’m using Asterisk 1.8.10.1 on Ubuntu