Fredrik von Kantzow
2004-Sep-26 14:38 UTC
[Asterisk-Users] SIP Registration Timeout, No FW
Hi people, My asterisk wont register with any sip providers, I have tried three different but they all end up with: Sep 26 17:36:36 NOTICE[114696]: chan_sip.c:4035 sip_reg_timeout: Registration for 'whatever@provider.tld' timed out, trying again There is no firewall and my server has a public IP. Could this be a Asterisk problem? -Fredrik vK
Well we can only guess unless you: 1. get a sip debug for us 2. run tcpdump and see if its accually passing traffic. 3. check to see if you need srvlookups. bkw> -----Original Message----- > From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users- > bounces@lists.digium.com] On Behalf Of Fredrik von Kantzow > Sent: Sunday, September 26, 2004 4:39 PM > To: Asterisk Users Mailing List - Non-Commercial Discussion > Subject: [Asterisk-Users] SIP Registration Timeout, No FW > > Hi people, > My asterisk wont register with any sip providers, I have tried three > different but they all end up with: > > Sep 26 17:36:36 NOTICE[114696]: chan_sip.c:4035 sip_reg_timeout: > Registration for 'whatever@provider.tld' timed out, trying again > > There is no firewall and my server has a public IP. Could this be a > Asterisk > problem? > > -Fredrik vK > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users
I'll only comment on sipgate, as I have it running without problems:> register => mynr:myuser:mypass@sipgate.de/1012Change this to register => mynr:mypass@sipgate.de/1012 (mypass is the SIP password, not your web login password). Here's my sipgate context: [sipgate] type=friend host=sipgate.de fromdomain=sipgate.de secret=mypass username=mynr fromuser=mynr dtmfmode=info canreinvite=yes insecure=very Note that fromdomain (sipgate.DE) and fromuser (mynr) differ from yours. Also, note that in order to receive calls from sipgate.de, you'll have to add the insecure=very if you're on a somewhat recent release of *.
Nope, I'm sitting behind a router/firewall, with port forwarding enabled. Also using "externip = my.dyndns.hostname", automatically updated by the router. That should not be relevant, though, in this case. The syntax for a SIP register per the Wiki is register => user:secret:authuser@ ... You have it as "mynr:myuser:mypass@", or "user:authuser:secret@". Also, all sipgate needs is your 7-digit SIP ID plus the corresponding password (the one assigned by sipgate). On one of the German VoIP forums there was talk about the fact that in the peer definition "fromdomain=sipgate.net" *used* to work. However, sipgate did change that and apparently requires the fromdomain to be sipgate.de. The other thing in the debug that strikes me is that your local call IDs are tied to the loopback interface (127.0.0.1). I have no clue on whether that works or not, however I did include a "bindaddr" statement in my SIP [general] context. Here's what it reads: [general] disallow=all allow = ulaw tos = lowdelay port = 5060 bindaddr = 192.168.254.80 ; internal, non-natted IP address to bind to externip = my.dyndnsname.net localnet = 192.168.254.0/255.255.255.0 srvlookup = no context = from-sip callerid = Asterisk language = en maxexpirey = 3600 defaultexpirey = 1800 register => mynr:mypass@sipgate.de/mynr> Does your Asterisk server have a public IP?> -Fredrik> I'll only comment on sipgate, as I have it running without problems: > > > register => mynr:myuser:mypass@sipgate.de/1012 > > Change this to > > register => mynr:mypass@sipgate.de/1012 > > (mypass is the SIP password, not your web login password). > > Here's my sipgate context: > > [sipgate] > type=friend > host=sipgate.de > fromdomain=sipgate.de > secret=mypass > username=mynr > fromuser=mynr > dtmfmode=info > canreinvite=yes > insecure=very > > Note that fromdomain (sipgate.DE) and fromuser (mynr) differ > from yours. > Also, note that in order to receive calls from sipgate.de, > you'll have to add the insecure=very if you're on a somewhat > recent release of *.
> Still getting those timeouts :( > -FredrikHmmmph! What does your network look like? You say "No FW", but could a router block inbound communication? Just checking, as you appear to be running two different networks/interfaces (10.0.0.2 and 216.110.117.54). Is one an alias for the other? Or is the 216 address your router, the 10 a system behind the router? Are both addresses assigned to two different interfaces in the same box? Getting curious here :-) It appears your 216 address is at least pingable from here.
> If I am wrong I'd like to know what are the right settings so I can add > them to the Wiki.> Regards, > PatrickNope, you're right. Need to use the SIP-ID and the SIP-Password (both from the personal page when logged into sipgate.de). I didn't point this out as it appears from the sip debug that Fredrik was using the correct ID (8703040 in his case, which is not a German DID number, but rather the sipgate SIP-ID)
Fredrik von Kantzow
2004-Sep-28 09:13 UTC
[Asterisk-Users] RE: SIP Registration Timeout, No FW
The ADSL Speedtouch 510 act as a router with external ip 216 on WAN (PPPoA_1).... And internal 10.0.0.138 on LAN (eth0). I have set the linux server to be the "default" in NAPT on the router, this forwards everything that is not catched by the other NAPT entries. The other NAPT entries is on other ports than the SIP traffic. -Fredrik> -----Original Message----- > From: asterisk-users-bounces@lists.digium.com > [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of > Kai-Uwe Jensen > Sent: Monday, September 27, 2004 8:16 PM > To: asterisk-users@lists.digium.com > Subject: [Asterisk-Users] RE: SIP Registration Timeout, No FW > > > Still getting those timeouts :( > > -Fredrik > > Hmmmph! What does your network look like? You say "No FW", > but could a router block inbound communication? Just > checking, as you appear to be running two different > networks/interfaces (10.0.0.2 and 216.110.117.54). > > Is one an alias for the other? Or is the 216 address your > router, the 10 a system behind the router? Are both > addresses assigned to two different interfaces in the same > box? Getting curious here :-) It appears your 216 address is > at least pingable from here. > > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >