Linksys SPA-942 SIP Registration Problem - Voip.ms
Links: home · search · speed test · login · more ·

 
Links: Reply New Topic
Forums » Voice Over IP - VOIP » VOIP Tech Chat » Linksys SPA-942 SIP Registration Problem - Voip.ms
page: 1 · 2
cheebster @ 5th Nov 01:37PM:
Linksys SPA-942 SIP Registration Problem - Voip.ms

Hi. I have a sip registration problem on 2 sub accounts that i have setuped at voip.ms.

I'm using 2 devices here :

1 - Linksys PAP2T, this one registers ok and stays registered.
2 - Linksys SPA-942, this one has registration issues since 2 days.

My setup is fairly simple, it's a SOHO with a Linksys WRT54G running tomato 1.25, and the devices connected to it.

Here is my issue :

When the phone is powered up, the registration works on the voip.ms server(s) (i've tried them all, tried ip's instead of using server name, wont change anything).

If i place a call, during the call, i see the phone leds go to amber, which means there's a registration problem. I can stay on the call and it wont cut, but the phone isnt registered anymore.

Checking the phone's web interface confirms it, it says 'Failed - Not Reachable' for the registration status of both accounts im using on it. If i hang up, it wont register anymore. If i power cycle the unit, it registers.

I've contacted voip.ms on the issue, and was redirected to Steve which is a level 2 tech. He did some tracing on the problem, and here is the info he provided :


He wondered if the ICMP packets sent by the phone was causing the problem. I've enabled logging in the tomato firmware, looked at the log, i can't see anything about this in there.

When the reset of the phone is done, and the phone registers OK at the voip.ms server, i see the registration status of the phone stays OK there, and the registration time matches the power cycle time. But the phone itself isnt reporting itself as registered. !?!

The setup was working for 1 month, and i haven't done any configuration changes in the last days (maybe the spa-942 updated it's firmware itself, that i can't tell, it seems to be automatic up to some point).

If anyone has a clue that could possibly fix my issue, go ahead, i'd be glad to get my buisness phone working again :S

Thanks, Vincent

reply
ChrisR @ 5th Nov 01:59PM:
Re: Linksys SPA-942 SIP Registration Problem - Voip.ms

Just to make sure... at least one of those two accounts is a "sub-account", right? According to VOIP.ms' guidelines, only one "main" account can be registered at a time without causing problems.
reply
cheebster @ 5th Nov 02:17PM:
Re: Linksys SPA-942 SIP Registration Problem - Voip.ms

Hi ChrisR, yes they are sub-accounts.
reply
Mango @ 5th Nov 08:25PM:
Re: Linksys SPA-942 SIP Registration Problem - Voip.ms

Do you have the phone and the ATA configured to use different ports? Try 5060 for one and 5061 for another.
reply
cheebster @ 5th Nov 08:46PM:
Re: Linksys SPA-942 SIP Registration Problem - Voip.ms

I've tried that, it wont help ! Same issue.
reply
Stewart @ 6th Nov 12:49PM:
Re: Linksys SPA-942 SIP Registration Problem - Voip.ms

Can you run tcpdump on the tomato WAN port? That would allow us to see port numbers, confirm the source of the ICMPs, etc.

Several things about the trace seem inconsistent. For example, if the phone got the reply to the BYE, why would it send ICMP errors? Why more than one? If it didn't get the response, why didn't it retry the BYE? Is the round trip delay from Toronto to Montreal really less than 5 ms, including cable modem latency? What is your ping time to 24.102.60.67?

Can you do a test with the IP phone connected directly to the cable modem (you'll need to reboot modem and phone)? If that doesn't fail, try swapping the local ports used by the devices and see if the failure moves (reboot everything after changing the config).
reply
anon @ 7th Nov 07:12AM:
Re: Linksys SPA-942 SIP Registration Problem - Voip.ms

Take a look at this:
»www.linksysinfo.org/forums/showt···?t=53180
Look at post #5 for a couple of settings you might want to try.

Another idea to help troubleshoot the issue:
Login via ssh and run the following command on your router:
grep 192.168.0.5 /proc/net/ip_conntrack
Just replace 192.168.0.5 with the ip address of your ATA\SIP phone that you want the network connection details on.
If you see any connections between the phone and voip.ms that are in a unreplied state when you experience this issue the above link should help.

Hope this helps..
reply
cheebster @ 7th Nov 07:40AM:
Re: Linksys SPA-942 SIP Registration Problem - Voip.ms

Hi Stewart. I get ping delays of about 32 ms consistent, it never seems to vary much.

I'm unsure how would i be able to run tcpdump ? I can research that and i will try the direct to modem test tomorrow. Will post back,thanks for the useful reply sir.

------------------------------------

Edit : Ok, i was able to mount a CIFS share using the client, telnet in, run tcpdump. However, i'm unsure what would be a proper syntax for getting what i'd need here.

tcpdump -i vlan0 -w log.txt then which arguments ? I'm reading the man page, but there's so many options. Any help would be really appreciated. Thanks again.
reply
cheebster @ 7th Nov 09:21AM:
Re: Linksys SPA-942 SIP Registration Problem - Voip.ms

I tried to run :

# tcpdump -i vlan1 -w log.txt host 24.102.60.67

It gave me some captured packets. I attached the log file, but it seems weirdo characters in there. Can't gather much from it, on my side.
log.txt 172,980 bytes
reply
cheebster @ 7th Nov 11:08AM:
Re: Linksys SPA-942 SIP Registration Problem - Voip.ms

# grep 192.168.69.101 /proc/net/ip_conntrack
udp 17 179 src=192.168.69.101 dst=24.102.60.67 sport=5070 dport=5060 src=24.102.60.67 dst=74.58.211.105 sport=5060 dport=5070 [ASSURED] use=1 mark=257

Here is the output of it, it seems not :|

said by anon99 :

Take a look at this:
»www.linksysinfo.org/forums/showt···?t=53180
Look at post #5 for a couple of settings you might want to try.

Another idea to help troubleshoot the issue:
Login via ssh and run the following command on your router:
grep 192.168.0.5 /proc/net/ip_conntrack
Just replace 192.168.0.5 with the ip address of your ATA\SIP phone that you want the network connection details on.
If you see any connections between the phone and voip.ms that are in a unreplied state when you experience this issue the above link should help.

Hope this helps..

reply
Stewart @ 7th Nov 11:11AM:
Re: Linksys SPA-942 SIP Registration Problem - Voip.ms

said by cheebster :

I tried to run :

# tcpdump -i vlan1 -w log.txt host 24.102.60.67

It gave me some captured packets. I attached the log file, but it seems weirdo characters in there. Can't gather much from it, on my side.
The default output is binary. If captured correctly, you should be able to open the file in Wireshark on a Windows/Mac/Linux computer. The attached file is corrupted -- I suspect that BBR did some funny formatting, possibly because of the .txt extension.

Try running
# tcpdump -i vlan1 -s 1514 -w log.pcap host 24.102.60.67
and see if you can display it correctly on your PC (the -s option tells it to save entire packets). Then, put it in a .zip file and attach that.

reply
cheebster @ 7th Nov 12:18PM:
Re: Linksys SPA-942 SIP Registration Problem - Voip.ms

Here is the attached file. More readable, but still some garbled stuff. I'm wondering if that linksys phone is defective (firmware problem?) and sending some weirdo requests that bugs the hell of of the connection...

Thanks, Vincent
log.zip 572,440 bytes
reply
Stewart @ 7th Nov 12:27PM:
Re: Linksys SPA-942 SIP Registration Problem - Voip.ms

The new file reads fine with Wireshark. AFAICT there is nothing garbled. What program are you using to open it?

The ICMP errors are IMO not a problem. After the BYE, the server sends a few more voice packets (presumably due to network latency) but the phone has already shut down the media stream, so it sends ICMPs. They have nothing to do with the SIP and I believe are unlikely to be related to your problem.

I'll post another message if I can see what is actually going wrong, or if more info is needed.
reply
Stewart @ 7th Nov 12:43PM:
Re: Linksys SPA-942 SIP Registration Problem - Voip.ms

Sorry, can't see anything obviously wrong. There are four registrations for each of _1 and _4 subaccounts, all apparently successful. Also, three calls from subaccount _1, which also seem ok. What happened at your end that was unexpected?
reply
Stewart @ 7th Nov 01:54PM:
Re: Linksys SPA-942 SIP Registration Problem - Voip.ms

I just realized that your original post speaks of two sub accounts, but your 942 is registering on two. Does the PAP2T use other sub accounts? Your capture shows no packets from the PAP2T, perhaps because it is registering to a different server.
reply
cheebster @ 7th Nov 08:27PM:
Re: Linksys SPA-942 SIP Registration Problem - Voip.ms

Hi Stewart. I have 2 devices, first is a PAP2T, second SPA-942.

The pap2t uses _2 _3, and the SPA uses _1 _4 to register.

I changed the servers for testing means on the pap2t to US4 but i usually use the same servers on both devices.

On a side note, the pap2t registers sucessfully on the servers, i can do calls, everything works fine on this device. On the same lan, using the same router.

What's happening is that my SPA-942 is unusable.

If i plug power to it, it will register (extension leds goes to green) and i can do 1-2-3 calls and the leds go to amber on them (failed, not reachable). I can't do another call with it after it goes to that state unless i power cycle it.

The status page on the web interface shows the unit tries to re-register itself every 30 seconds.

However, the voip.ms page shows the unit as registered. I don't receive any calls on the device even if i just power cycled it and leds show green and status page shows registered.

It's some weird problem, i'm getting to believe the IP phone is defective. I don't have much voip experience, but this all sounds strange.
reply
drak0 @ 7th Nov 08:31PM:
Re: Linksys SPA-942 SIP Registration Problem - Voip.ms

I had an issue like that when I bought my pap2t from F9 - it came set to use their DNS servers. It turns out that when I switched to pbxes, all hell would break loose. It would stay connected for a few minutes then lose registration because the DNS server was returning a bogus IP.

update: FYI, I ended up switching to the opendns servers and since then no DNS related issues!
reply
Stewart @ 7th Nov 09:14PM:
Re: Linksys SPA-942 SIP Registration Problem - Voip.ms

It looks like drak0 may be on to something. Your phone was registering every ~31 seconds; the last registration response was at 93 seconds into the capture, so we'd expect the next request at about 124 seconds. The capture ends at 126.7, so it's likely that a request wasn't sent. However, because you filtered on the voip.ms host, we don't know whether a request was sent to the wrong place or whether DNS was involved.

Try setting DNS servers in the phone to 4.2.2.1 and 4.2.2.2. If that doesn't help, do a capture on the LAN interface, looking at everything from/to 192.168.69.101. With luck, that will show the problem.

IMO it's very unlikely that the phone has a hardware fault.
reply
cheebster @ 8th Nov 09:30AM:
Re: Linksys SPA-942 SIP Registration Problem - Voip.ms

Hi there. I've tried switching the DNS to the ones you've suggested, it didn't change much, still un-registering after doing one call. I will capture the packets on the lan on the phone ip later on today. Thanks !!!

EDIT : Um... Maybe it was a temporary issue, i've been able to do about 10 test calls, phone doesnt seem to fall offline anymore... I'll report back later on the status..

I don't understand how the problem could be dns related since i've also tried using IP's instead of names and it would still not work.

Thanks.
reply
cheebster @ 8th Nov 10:15AM:
Re: Linksys SPA-942 SIP Registration Problem - Voip.ms

Update... The problem re-occured. It took longer, but phone went failed unreachable again.

I captured for a while, until it failed. Capture file is 31mb 16mb compressed. Should i upload it here ? Thanks, Vincent
reply
drak0 @ 8th Nov 11:35AM:
Re: Linksys SPA-942 SIP Registration Problem - Voip.ms

said by cheebster :

Update... The problem re-occured. It took longer, but phone went failed unreachable again.

I captured for a while, until it failed. Capture file is 31mb 16mb compressed. Should i upload it here ? Thanks, Vincent
you could upload it to drop.io or any of the other file sharing networks (mediafire maybe)
reply
Stewart @ 8th Nov 11:51AM:
Re: Linksys SPA-942 SIP Registration Problem - Voip.ms

Alternatively, we can assume that the problem is not related to RTP, which is probably most of the data in your capture. Open the file in Wireshark, set the Filter field to "!rtp" (without the quotes), click Apply. Then do File->Save As, in the Packet Range box click Displayed, save the file under another name. With luck it will be drastically smaller.
reply
cheebster @ 8th Nov 11:57AM:
Re: Linksys SPA-942 SIP Registration Problem - Voip.ms

Ok ! First time in wireshark,but managed to do what you said; i attached the file !
log2_filtere···pcap.zip 60,906 bytes
reply
Stewart @ 8th Nov 01:04PM:
Re: Linksys SPA-942 SIP Registration Problem - Voip.ms

OK, we see successful registrations at 2448 seconds, BYE at 2465, then all traffic stops at 2475. The expected next register requests should have been at 2479. Assuming that there was not a problem with the capture (it continued to run for at least 15 seconds after you hung up the last time), then perhaps the physical layer is dropping for some reason.

It would be interesting to run a ping to the phone from another host on your LAN to see if the phone stops responding, and if so, whether it resumes responding after a short while. Also, change Reg Retry Long Intvl from 1200 to 30 to see if when registration is lost, it can be regained 30 seconds later.

With a short Reg Expires setting (I assume you have it set to 30 or so), you should not also need NAT Keep Alive Enable. Try turning that off, in case it is somehow causing a conflict.
reply
cheebster @ 8th Nov 02:59PM:
Re: Linksys SPA-942 SIP Registration Problem - Voip.ms

Ok. I don't get why is that, but the phone seems to stay online longer than before after the DNS change... It's online now, phone's been sitting for hours. Didn't do that before.

The nat keep alive is enabled. I can try disabling it, i got my reg expires set to 3600 (that means 60 minutes i think ?).

Thanks.. Vincent
reply
Stewart @ 8th Nov 03:24PM:
Re: Linksys SPA-942 SIP Registration Problem - Voip.ms

I don't understand why your phone is registering every 31 seconds. Do you have a non-standard value in Reg Max Expires (default is 7200)?

If you changed Reg Retry Long Intvl to 30, it's possible that the phone did lose registration, but regained it 30 seconds later and you didn't notice the gap.

If you do get it to register only once an hour and also turn off keep alive, you'll likely have a problem with the NAT associations timing out in tomato. Forwarding UDP ports 5070 and 5071 to the IP phone should fix that.
reply
cheebster @ 8th Nov 03:54PM:
Re: Linksys SPA-942 SIP Registration Problem - Voip.ms

Um. here's a c'n'p from the interface, taken right now

Ext 1 Status
Registration State: Registered Last Registration At: 11/8/2009 11:59:59
Next Registration In: 294 s Message Waiting: No
Mapped SIP Port: 5070

It seems to be registed for a while now. The dns fixed the issue it seems ? I don't know if it will hold strong, but it's sure better than it was. I still don't understand what was the real issue with the dns though. I used an ip instead of the name and the problem was still there. (?!?) Could reproduce the issue within 30 seconds.

I will forward the ports, ive tried removing the forwardings (from voip.ms's suggestion) but now people say they lose my voice when i talk in the last days. Really annoying.

Reg Retry Intvl: 30
Reg Retry Long Intvl: 1200

I didn't change those, and the Reg Max Expires is 7200 default as well.
reply
Stewart @ 8th Nov 04:15PM:
Re: Linksys SPA-942 SIP Registration Problem - Voip.ms

The registration times seem inconsistent. Does your phone show the correct time? If so, for what time zone? If not, check if you have valid NTP server(s) set up. There are no NTP requests in the last capture you sent. If it was taken starting at boot-up, NTP appears to be not set up. Even if the time is wrong, the registration interval should be [time shown on phone] - [last reg at] + [time to next]. However, even the 294 seconds is much longer than the 31 seconds we were observing. If the phone is still sending REGISTER requests every 31 seconds, perhaps it does not like the response it is getting from voip.ms (though it looks fine to me and it's good enough to prevent the request from being immediately retried).

Port forwarding (or not) of SIP ports should not affect audio problems, which depend on RTP ports.


reply
cheebster @ 8th Nov 05:05PM:
Re: Linksys SPA-942 SIP Registration Problem - Voip.ms

Ok. Now i will setup NTP properly. It seems there's a few pre-resquisites that will make your voip experience either very good or very bad, hehe

About RTP ports, i should be able to set some ranges in either of my 2 devices, and setup port forwarding on those (nat should be taking care of it, but port forwarding is kind of doing it the hard way, forcing it, right?)

Thanks !!!!
reply
Stewart @ 8th Nov 05:06PM:
Re: Linksys SPA-942 SIP Registration Problem - Voip.ms

When your outbound voice is interrupted, is inbound still ok? If not, perhaps your problem is mechanical -- using the phone wiggles a loose Ethernet connection. Try replacing the Ethernet cable and connect the new one to a different port on your router. Try wiggling the cable while listening to e.g. music on hold and see if it causes any interruptions.
reply
cheebster @ 8th Nov 05:10PM:
Re: Linksys SPA-942 SIP Registration Problem - Voip.ms

Yeah, inbound is still ok. I'm setting the rtp ports min and max and doing the forwarding right now.

Btw, do you have an idea how could i fix echo on the other party's side, they hear their own voice echo'ed ? I've been searching, trying a thousand things, but couldn't nail this one down. I'm kind of a newbie with voip.
reply
Stewart @ 8th Nov 05:11PM:
Re: Linksys SPA-942 SIP Registration Problem - Voip.ms

Once a call is answered and has two-way audio, the NAT should keep the ports open for the entire call and forwarding should not be needed.

Forwarding RTP ports is useful when you are doing NAT mapping in the phone, to ensure that the NAT router doesn't change the RTP port number, which the phone sends to the server in SDP (and the server uses to send voice packets back to the phone).
reply
cheebster @ 8th Nov 05:17PM:
Re: Linksys SPA-942 SIP Registration Problem - Voip.ms

I lost you right there.

If i enable port forwarding, i can disable nat port mapping in the phone ? Is it a bad practice to keep nat mapping enabled and forward ports ?
reply
Stewart @ 8th Nov 05:42PM:
Re: Linksys SPA-942 SIP Registration Problem - Voip.ms

If you don't use NAT mapping, the provider's border controller should send RTP packets back to whatever IP and port they came from, so no port forwarding is normally not needed. If you do use NAT mapping and the provider allows you to bypass their border controller (and get RTP packets directly from their carrier's server), then you usually need to forward the RTP port range.

I don't use voip.ms so don't know the details, but your captures showed voice packets coming from ca2.voip.ms, so either bypassing the SBC is not allowed, or your NAT mapping was not set up correctly. In either case, if you are happy with the latency, IMO you should just leave things alone.

I don't have any Linksys phones so don't know the details about echo. Usually, IP phones (when using handset or headset) have very little echo to begin with. If inbound or outbound volume is more than you need, try reducing the corresponding gains. Linksys ATAs have settings for Echo Canc Enable, Echo Canc Adapt Enable, Echo Supp Enable, and More Echo Suppression. If your phone has those settings, see if they help.
reply
drak0 @ 8th Nov 06:46PM:
Re: Linksys SPA-942 SIP Registration Problem - Voip.ms

Not sure if the other major issue I had with my pap2t is related, but the wife would constantly have one way audio problems (inbound OK, outbound broken)... it was due to fax detection. Does the other end of the line experience a loud beep (dtmf tone) before it cuts out?
reply
cheebster @ 9th Nov 10:05AM:
Re: Linksys SPA-942 SIP Registration Problem - Voip.ms

I will have to look into that, drak0. I will ask next time.

So far so good on the Level3 dns fix, phone never went offline since my last post. Been a whole day, i think case is closed.

So, the problem was a DNS issue, but where ? At videotron ? On my SBS server that has a wrong entry ?

What i'm wondering is why, oh why it wouldn't work even if i used the IP's in the SPA instead of the names. So it's somewhere else that the resolve was bad.. i don't get this one.
reply
Mango @ 9th Nov 10:34AM:
Re: Linksys SPA-942 SIP Registration Problem - Voip.ms

said by cheebster :

What i'm wondering is why, oh why it wouldn't work even if i used the IP's in the SPA instead of the names. So it's somewhere else that the resolve was bad.. i don't get this one.
Ditto. It makes no sense. However, given experience with the Linksys DNS Bug I am not at all surprised :P

I am glad it is working now.

m.
--
Who is the best VoIP provider? | Which ATA should I buy? | Dial Plan Tips and Tricks

reply
cheebster @ 9th Nov 11:50AM:
Re: Linksys SPA-942 SIP Registration Problem - Voip.ms

Hi Mango. So, the Linksys DNS bug is a well known issue, i'm not along with that kinda issue ? I'll google a bit.
reply

Thank you for using lo-fi dslreports.com - report bugs
© 99-2009 silver matrix LLC