Reply
Thread Tools
Posts: 2 | Thanked: 0 times | Joined on Dec 2009
#1
I have an Asterisk server on a public IP address. I am using the N900 SIP client to connect as an extension. Everything works over WiFi but registration drops after a couple of minutes over tmobile 3g, i.e. asterisk doesn't see the extension as online anymore and calls go to voicemail.


If I get on the phone as root and put the phone in a continuous ping to anywhere on the internet, registration stays on for like 20 minutes before dropping.

Any ideas?
 
Posts: 2 | Thanked: 0 times | Joined on Dec 2009
#2
BTW no problem keeping skype registered at all tymes
 
R-R's Avatar
Posts: 739 | Thanked: 242 times | Joined on Sep 2007 @ Montreal
#3
What's the SIP user like?
 
Posts: 23 | Thanked: 4 times | Joined on Oct 2007 @ Virginia
#4
Could be a few things but if your T-Mobile connection is like mine your assigned an RFC1918 address and NATed to the Internet. It's quite likely that your having NAT issues or even that the IP on your phone is switching at times.

You should look at using a STUN server or other proxy but you can play around with a few things:

- Try adjusting the registration time on the phone to less than 5 minutes.
- Try adding qualify to the configuration if you don't have that already. This will force keep alives to help with NAT timeout issues.
- Make sure the phone is configured with NAT=YES if it isn't already.

Good luck -
 
Posts: 31 | Thanked: 16 times | Joined on Mar 2010
#5
I had this same problem using t-mobile's internet3 APN (VPN data plan) which gives a routable (but firewalled) IP address. I was able to get this to work by adding this to my extensions.conf for my phone:

qualify=5000
qualifyfreq=30

I use 5 seconds for the qualify timeout because I got tired of seeing in my logs that the phone was lagged. The change in frequency is needed since if the packet is lost, the sip udp connection could timeout which appears to be the cause of the problem.
 
Posts: 89 | Thanked: 6 times | Joined on Feb 2010
#6
I have the same problem
 
Posts: 31 | Thanked: 16 times | Joined on Mar 2010
#7
If you're using asterisk and can make changes to it, try the settings I posted above your post. It works for me.
 
Posts: 89 | Thanked: 6 times | Joined on Feb 2010
#8
Yeah. I do exactly that... Note that I prefer to not monitor 3G extension. What keepalive method are you using? options or register?
 
Posts: 89 | Thanked: 6 times | Joined on Feb 2010
#9
I've tried a lot of different configuration and still with this problem.

After some time the extension come not available.
 
Posts: 89 | Thanked: 6 times | Joined on Feb 2010
#10
The qualify parameters isn't working great with me. Anyone else is passing for this same problem?
 
Reply


 
Forum Jump


All times are GMT. The time now is 23:06.