Voxilla VoIP Forum

Go Back   Voxilla VoIP Forum > Hardware/Software Support Forums > Asterisk Support Forum

Asterisk Support Forum Technical support, how-to guides, troubleshooting, and general assistance, from beginner to seasoned pro, this is where to discuss Asterisk, the most powerful open source PBX.


Closed Thread
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old February 4th, 2006, 05:19 PM
Senior Member
 
Join Date: Feb 2005
Location: Bradford UK
Posts: 195
jmattwood
Default Registration Problems

Code:
 (no NAT) to 80.249.108.21:5060
Retransmitting #1 (no NAT):
REGISTER sip:registrar.voip.co.uk SIP/2.0
Via: SIP/2.0/UDP 127.0.0.1:5060;branch=z9hG4bK1d795eae
From: <sip:snipped@registrar.voip.co.uk>;tag=as2dffb7b8
To: <sip:snipped@registrar.voip.co.uk>;tag=ac21416b
Call-ID: 3cdb4bff18af1ff10f02267206156bfd@192.168.1.2
CSeq: 187 REGISTER
User-Agent: Asterisk PBX
Proxy-Authorization: Digest username="snipped", realm="registrar.voip.co.uk", algorithm=MD5, uri="sip:registrar.voip.co.uk", nonce="1139072913:600cfd9dd095536730fac365722a91ca", response="de63eec95461905435fa1c0bd6f6921c", opaque=""
Expires: 120
Contact: <sip:snipped@127.0.0.1>
Event: registration
Content-Length: 0
Above is taken from CLI whilst sip debug ip is set.

Third line up from the bottom should show, I presume, my public IP address, not the loopback address of the server.

Sip.conf has the recommended externip set properly &amp; I have not made any changes that would cause this, as far as I'm aware. It is, however, causing outbound calls to be silent &amp; inbound to be completely unobtainable, with one provider only.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2 (permalink)  
Old February 6th, 2006, 08:48 PM
Junior Member
 
Join Date: Jan 2006
Posts: 13
supa
Default RE: Registration Problems

I have a very simillar problem:
Code:
-- Got SIP response 500 "Internal Server Error" back from 147.135.20.128
Destroying call '78a1df8376af856b5be47d08526ba340@127.0.0.1'
REGISTER 12 headers, 0 lines
Reliably Transmitting (no NAT) to 147.135.20.128:5060:
REGISTER sip:sip.broadvoice.com SIP/2.0
Via: SIP/2.0/UDP 69.162.210.234:5060;branch=z9hG4bK2d58f86d;rport
From: <sip:7169541991@sip.boradvoice.com>;tag=as0bdc8804
To: <sip:7169541991@sip.boradvoice.com>
Call-ID: 78a1df8376af856b5be47d08526ba340@127.0.0.1
CSeq: 171 REGISTER
User-Agent: Asterisk PBX
Max-Forwards: 70
Expires: 120
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3 (permalink)  
Old February 6th, 2006, 09:08 PM
Senior Member
 
Join Date: Feb 2005
Location: Bradford UK
Posts: 195
jmattwood
Default RE: Registration Problems

The original ITSP I mentioned has forced a fix, which has got me up &amp; running again, although they say it is a temporary fix.

Quote from thei mail: "i'll temporarily "fix" your issue by forcing 127.0.0/24 contact
addresses to be re-written to the source ip + port the REGISTER came
from on our end rather than just blank outright rejecting it. I can't
keep it there forever though as it indicates a configuration error that
can lead to other problems, which obviously makes it harder to diagnose
issues when the cause if the SIP UA thinking it's local contact address
is 127.0.0.1"

Unfortunatley, it's started happening, now with a second ITSP.
Code:
to 217.10.79.219:5060
Retransmitting #3 (no NAT):
REGISTER sip:sipgate.co.uk SIP/2.0
Via: SIP/2.0/UDP 127.0.0.1:5060;branch=z9hG4bK2a308723
From: <sip:SNIPPED@sipgate.co.uk>;tag=as2e81f810
To: <sip:SNIPPED@sipgate.co.uk>
Call-ID: 59cc6eee45ddee167edce25c7dbb4495@127.0.0.1
CSeq: 124 REGISTER
User-Agent: Asterisk PBX
Authorization: Digest username="SNIPPED", realm="sipgate.co.uk",
algorithm=MD5,
uri="sip:sipgate.co.uk", nonce="43e7989e0d1e8ad0e5db4ae73c025bf8d9a5bb30",
response="15ba591ac679b5346904eb3e170ec384", opaque=""
Expires: 120
Contact: <sip:SNIPPED@127.0.0.1>
Event: registration
Content-Length: 0
Now, although I've fiddled &amp; fiddled and am now seeing my external IP address in the headers, it's gone to one way audio. Pah!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4 (permalink)  
Old February 6th, 2006, 09:14 PM
Junior Member
 
Join Date: Jan 2006
Posts: 13
supa
Default RE: Registration Problems

I changed the "Bind Address", in my SIP.conf, and that got rid of the 127 address. Im going to update and then but the PBX out on the DMZ to see if it's just a stupid natting issue.

ill let you knw
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5 (permalink)  
Old February 6th, 2006, 10:12 PM
Senior Member
 
Join Date: Feb 2005
Location: Bradford UK
Posts: 195
jmattwood
Default RE: Registration Problems

What did you change it from/to?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #6 (permalink)  
Old February 7th, 2006, 08:11 AM
Senior Member
 
Join Date: Jul 2005
Posts: 362
chandave is an unknown quantity at this point
Send a message via MSN to chandave
Default RE: Registration Problems

This usually happens when Asterisk cannot determine the address of the Network Interface Card that it should use to send out packets.

This might work so long as you don't have 2 network interface cards:
  1. At the linux command line, issue the following: /sbin/ifconfig eth0
  2. Look for the IP address next to the "inet addr:" line. It will be the IP address of the Network Interface Card. Let's assume it says: inet addr: 192.168.0.2
  3. Edit your /etc/asterisk/sip.conf and change/add line in the [general] section the line:
    bindaddr=192.168.0.2
  4. Restart your asterisk instance.
This will force your asterisk server to listen for connections only on the Network Interface with the IP addresss of 192.168.0.2. It also has the side effect that it can only use that interface to send out packets. If you are behind a NAT, then you will also need to fill in your externip= and localnet= entries to reflect your public network address and private network addressing scheme.

See ya...

d.c.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #7 (permalink)  
Old February 7th, 2006, 10:01 PM
Senior Member
 
Join Date: Feb 2005
Location: Bradford UK
Posts: 195
jmattwood
Default RE: Registration Problems

Thanks for the explicit suggestions, once again.

It had been suggested that I used the address of the asterisk network card in bindaddr. Having it set as you suggest appeared to cause the 127.0.0.1 address to be sent to the ITSP (Sipgate). Putting it back to 0.0.0.0 seemed to fix it.........I could equally be mistaken, though.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #8 (permalink)  
Old February 8th, 2006, 04:25 AM
Senior Member
 
Join Date: Jul 2005
Posts: 362
chandave is an unknown quantity at this point
Send a message via MSN to chandave
Default RE: Registration Problems

Actually, I just noticed something after reading one of Ward Mundy's old Nerd Vittles postings. Is the hostname of your machine resolving to 127.0.0.1?

I noticed that Ward suggested that you place your machine's Fully Qualified Domain Name along side of the 127.0.0.1 entry of your /etc/hosts (http://mundy.org/blog/index.php?m=200508). As a result, it looks like your Asterisk box might be resolving your hostname to 127.0.0.1 when DNS does not resolve fast enough.

See ya...

d.c.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #9 (permalink)  
Old February 10th, 2006, 10:23 PM
Senior Member
 
Join Date: Feb 2005
Location: Bradford UK
Posts: 195
jmattwood
Default RE: Registration Problems

Yeah, I have been considering exactly the same thing. What would it break if I removed 127.0.0.1 from the hosts file?

Anyway, I've since bought a new router & installed the DD-WRT (voip) firmware. I must say I'm very impressed. Everything works much better now, registrations included, even though I have removed my externip=my.dyndns.org from sip.conf, turned off all port forwarding & don't have my asterisk in the DMZ.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #10 (permalink)  
Old February 14th, 2006, 07:22 PM
mberlant's Avatar
Senior Member
 
Join Date: Aug 2004
Location: USA or Japan
Posts: 5,013
mberlant is an unknown quantity at this point
Default RE: Registration Problems

It will not break. In fact, it should fix your problem. The FQDN should go in your sip.conf file, so that Asterisk can resolve it (whenever sip.conf gets reloaded) and can put the current IP address into SIP packets. Having your hosts file resolve your own FQDN to 127.0.0.1 might make some timers happy, but it will confuse any SIP server that needs the real IP address to be in the payload of the Register packet (and not just in the "return address" of the header).
__________________
Please do not send technical questions via PM.
Please post all questions to the forum.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
SPA 3000 registration problems revisited rotary500 Asterisk Support Forum 1 May 27th, 2006 02:16 PM
Problems with GXP-2000 - incoming calls/loss of registration jrvoip1 Grandstream Support Forum 0 July 30th, 2005 10:05 PM
Registration problems with SPA 2000 RamziB Linksys (Sipura) VoIP Support Forum 3 October 28th, 2004 01:20 AM
SPA2000 registration problems the3rdParty Linksys (Sipura) VoIP Support Forum 3 October 1st, 2004 01:14 PM
SIP Registration Problems jrsupplee iConnectHere Support Forum 2 August 7th, 2004 12:30 AM



All times are GMT. The time now is 07:02 AM.


vBulletin, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc.
Logos and trademarks are the property of Voxilla or their respective owner. All other content © 2003-2009 by Voxilla, Inc.