[asterisk-users] trouble with sip connection and registration

2011-11-14 Thread sean darcy
I have a home asterisk box which connects to the office asterisk, so I 
can just dial extensions.


This used to work just fine. I'm using 10.0-rc1 on the home box, 1.8.7.0 
on the office. But it doesn't work now:


[Nov 14 18:38:19] NOTICE[21563]: chan_sip.c:13161 sip_reg_timeout:-- 
Registration for 'sip@officePBX' timed out, trying again (Attempt #86)


I first thought it was some fall out of the new upgrade to 10.0-rc1, but 
now I'm not sure.


Even with verbose at 6 I don't see anything on the office console about 
the attempted registration.


And on the office:

lsof -i:5060
COMMAND   PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
asterisk 2045 asterisk   15u  IPv4  23030  0t0  UDP *:sip

but:

telnet localhost 5060
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused

iptables is set to allow 5060 udp and tcp. And I've flushed iptables, 
but still no luck.


I can ssh into the office box from the home box. The office box is 
directly connected, the home nat'ed.


Any help really appreciated.

sean


--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
  http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] trouble with sip connection and registration

2011-11-14 Thread James Sharp
You're not going to get a telnet connection on port 5060, since that's tcp and 
sip uses UDP. 

Use tcpdump/wireshark on your office pbx to see if the packets are getting to 
you. If not, then there's something wrong inbetween. 

A firewall misconfig, perhaps. Or the unthinkable:  your home ISP has started 
filtering 5060. 



On Nov 14, 2011, at 18:51, sean darcy seandar...@gmail.com wrote:

 I have a home asterisk box which connects to the office asterisk, so I can 
 just dial extensions.
 
 This used to work just fine. I'm using 10.0-rc1 on the home box, 1.8.7.0 on 
 the office. But it doesn't work now:
 
 [Nov 14 18:38:19] NOTICE[21563]: chan_sip.c:13161 sip_reg_timeout:-- 
 Registration for 'sip@officePBX' timed out, trying again (Attempt #86)
 
 I first thought it was some fall out of the new upgrade to 10.0-rc1, but now 
 I'm not sure.
 
 Even with verbose at 6 I don't see anything on the office console about the 
 attempted registration.
 
 And on the office:
 
 lsof -i:5060
 COMMAND   PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
 asterisk 2045 asterisk   15u  IPv4  23030  0t0  UDP *:sip
 
 but:
 
 telnet localhost 5060
 Trying 127.0.0.1...
 telnet: connect to address 127.0.0.1: Connection refused
 
 iptables is set to allow 5060 udp and tcp. And I've flushed iptables, but 
 still no luck.
 
 I can ssh into the office box from the home box. The office box is directly 
 connected, the home nat'ed.
 
 Any help really appreciated.
 
 sean
 
 
 --
 _
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --
 New to Asterisk? Join us for a live introductory webinar every Thurs:
  http://www.asterisk.org/hello
 
 asterisk-users mailing list
 To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users
 

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] trouble with sip connection and registration

2011-11-14 Thread Steve Edwards

On Mon, 14 Nov 2011, sean darcy wrote:


telnet localhost 5060
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused


Telnet is TCP while SIP is usually UDP.

The 'Connection refused' just means you don't have telnetd running (a good 
thing) or anything else (xinetd, honeypot, etc.) listening on that TCP 
port.



iptables is set to allow 5060 udp and tcp...


127.0.0.1 is assigned to the 'lo' ('loopback') interface and probably not 
filtered by your iptables rules.


If you enable SIP debugging on your home and office Asterisk servers, does 
that yield any clues?


tshark and wireshark may also yield clues.

--
Thanks in advance,
-
Steve Edwards   sedwa...@sedwards.com  Voice: +1-760-468-3867 PST
Newline  Fax: +1-760-731-3000

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
  http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] trouble with sip connection and registration

2011-11-14 Thread sean darcy

On 11/14/2011 07:05 PM, James Sharp wrote:

You're not going to get a telnet connection on port 5060, since that's tcp and 
sip uses UDP.

Use tcpdump/wireshark on your office pbx to see if the packets are getting to 
you. If not, then there's something wrong inbetween.

A firewall misconfig, perhaps. Or the unthinkable:  your home ISP has started 
filtering 5060.



On Nov 14, 2011, at 18:51, sean darcyseandar...@gmail.com  wrote:


I have a home asterisk box which connects to the office asterisk, so I can just 
dial extensions.

This used to work just fine. I'm using 10.0-rc1 on the home box, 1.8.7.0 on the 
office. But it doesn't work now:

[Nov 14 18:38:19] NOTICE[21563]: chan_sip.c:13161 sip_reg_timeout:-- Registration 
for 'sip@officePBX' timed out, trying again (Attempt #86)

I first thought it was some fall out of the new upgrade to 10.0-rc1, but now 
I'm not sure.

Even with verbose at 6 I don't see anything on the office console about the 
attempted registration.

And on the office:

lsof -i:5060
COMMAND   PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
asterisk 2045 asterisk   15u  IPv4  23030  0t0  UDP *:sip

but:

telnet localhost 5060
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused

iptables is set to allow 5060 udp and tcp. And I've flushed iptables, but still 
no luck.

I can ssh into the office box from the home box. The office box is directly 
connected, the home nat'ed.

Any help really appreciated.

sean




Unthinkable!! Used wireshark: I can see the REGISTER packets going out 
from the home router, but nothing from home:5060 shows up at the office.


Bummer. Now I get to think about how to set up special ports between 
home and office. A great evening activity.


sean


--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
  http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] trouble with sip connection and registration

2011-11-14 Thread James Sharp

On 11/14/2011 09:57 PM, sean darcy wrote:


Unthinkable!! Used wireshark: I can see the REGISTER packets going out
from the home router, but nothing from home:5060 shows up at the office.

Bummer. Now I get to think about how to set up special ports between
home and office. A great evening activity.



I've always used a VPN to get around BS like that.  A home router 
running dd-wrt connecting via PPTP to your server, problem solved.


I'd also call your ISP and hold them accountable and ask why your 
traffic is being filtered.  And which ISP are you using?  That way we 
all know which ones like to play games with SIP packets.


--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
  http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users