Asterisk Sip help - Registration for 'firstname.lastname@example.org' timed out
Posted on 2009-04-23
Hi there, this seems to be a tricky problem...
my configuration is as follows:
I have a ubuntu linux box (8.04) which runs my asterisk. up untill a few weeks ago I was running this on a debian server and would just reboot the system each time this problem happens and it would fix itself, but the hard drive went totally bung on me and so did the power supply so i've moved it to my desktop system in the mean time, I was hoping the problem might fix itself if I moved servers but it hasn't, I also upgraded asterisk from 1.4 to 1.6 on the new system
I have 4 internal extentions, 3 X-Lite clients and 1 ATA adapter for a wireless normal house phone. all these can call each other no problem via asterisk using sip accounts.
I have 1 external sip account to my sip provider sip.kiwilink.co.nz this works fine for a certain period then I have to restart my whole system before it will work again. (approx once per week)
so after a certain amount of time my asterisk server will stop receiving and sending outgoing calls, I get the error in my asterisk log: Registration for 'email@example.com' timed out
This also happens as soon as I restart the asterisk server (not reboot the computer just asterisk):
[Apr 24 13:29:42] NOTICE: chan_sip.c:19828 sip_poke_noanswer: Peer 'sipout' is now UNREACHABLE! Last qualify: 0
[Apr 24 13:29:58] NOTICE: chan_sip.c:9489 sip_reg_timeout: -- Registration for 'firstname.lastname@example.org' timed out, trying again (Attempt #1)
[Apr 24 13:30:18] NOTICE: chan_sip.c:9489 sip_reg_timeout: -- Registration for 'email@example.com' timed out, trying again (Attempt #2)
I thought it could be a routing or network issue as my previous system had 2 seperate network cards and one was for the local network, the other for WWW. as the error seems to suggest that Asterisk cant get hold of the server.
The problem I'm faced with now is that I can't reboot this PC at the moment as I'm making a DD image of the old HDD from the broken server which looks like it will take several days to complete. and I really should fix this problem so it doesn't happen again.
My internet connection is through a Wireless G ADSL home gateway - WAG200G its using NAT to talk to my computers on the lan including the asterisk server and I'm thinking that I need some extra settings in my config for this to work better?
I just don't know why it would work fine and then stop, I haven't found a pattern that causes it to stop. I have tried restarting asterisk but that doesn't fix it either. As I have upgraded the version of Asterisk to 1.6 and the problems keep happening I figured it must be to do with the .conf files as there is so many difference between the 2 systems and I'm totally stuck!
here is part of my sip.conf file:
context=default ; Default context for incoming calls
bindport=5060 ; UDP Port to bind to (SIP standard port is 5060)
;bindaddr=192.168.2.188 ; IP address to bind to (0.0.0.0 binds to all)
bindaddr=0.0.0.0 ; IP address to bind to (0.0.0.0 binds to all)
srvlookup=yes ; Enable DNS SRV lookups on outbound calls
domain=192.168.2.188 ; Add IP address as local domain
register => 099749871:XXX@sip.kiwilink.co.nz/1234 ; 188.8.131.52 <- sip.kiwilink.co.nz's IP
;----------------------------------------- NAT SUPPORT ------------------------
; For incoming calls only. Example: FWD (Free World Dialup)
; We match on IP address of the proxy for incoming calls
; since we can not match on username (caller id)
type=friend ; we only want to call out, not be called
username=099749871 ; Authentication user for outbound proxies
fromuser=099749871 ; Many SIP providers require this!
;usereqphone=yes ; This provider requires ";user=phone" on URI
call-limit=2 ; permit only 5 simultaneous outgoing calls to this peer