 cheebster
join:2009-10-05
1 edit | 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 |
|
 ChrisR
join:2009-11-03 Austin, TX | 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. |
|
 cheebster
join:2009-10-05 | Hi ChrisR, yes they are sub-accounts. |
|
 Mango toao.net
join:2008-12-25 Vancouver, BC | reply to cheebster Do you have the phone and the ATA configured to use different ports? Try 5060 for one and 5061 for another. |
|
 cheebster
join:2009-10-05 | I've tried that, it wont help ! Same issue. |
|
 Stewart
join:2005-07-13
·PHONE POWER
1 edit | reply to cheebster 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). |
|
  anon99
@cox.net
| reply to cheebster 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.. |
|
 cheebster
join:2009-10-05
1 edit | reply to Stewart 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. |
|
 cheebster
join:2009-10-05
| 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. |
|
 cheebster
join:2009-10-05
| reply to anon99 # 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=53180Look 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.. |
|
 Stewart
join:2005-07-13
·PHONE POWER
| reply to cheebster
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. |
|
 cheebster
join:2009-10-05
| 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 |
|
 Stewart
join:2005-07-13
·PHONE POWER
| 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. |
|
 Stewart
join:2005-07-13 1 edit | reply to cheebster 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? |
|
 Stewart
join:2005-07-13 | reply to cheebster 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. |
|
 cheebster
join:2009-10-05
| 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. |
|
 drak0
join:2009-05-16
1 edit | 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! |
|
 Stewart
join:2005-07-13
·PHONE POWER
| reply to cheebster 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. |
|
 cheebster
join:2009-10-05
1 edit | 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. |
|
 cheebster
join:2009-10-05 | 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 |
|