Failed to authenticate on REGISTER (Suse9.3+AMD64+Sipgate)

DirkHX

Neuer User
Mitglied seit
5 Mai 2005
Beiträge
10
Punkte für Reaktionen
0
Punkte
0
Hallo!

Ich habe ein Problem mit Asterisk unter SUSE 9.3 (64bit) auf einem AMD64 und einem Sipgate-Account. Ich erhalte derzeit immer die Fehlermeldung "han_sip.c:6836 handle_response: Failed to authenticate on REGISTER to '<sip:[email protected]>;tag=as7c4xxxxx'"

Trotz ewiger Suche hier im Forum und bei google gibt es zu der Fehlermeldung kaum Informationen. Ich poste hier einfach mal meine Configs und das "sip debug"-Protokoll.

sip.conf (aktueller Stand - schon verschiedene Änderungen getestet):

Code:
[general]
port = 5060
bindaddr = 0.0.0.0
externip = xxxxxx.dtdns.net
Localnet = 192.168.2.0/24
srvlookup = yes
context = default
disallow=all
allow=alaw
allow=alaw
allow=ulaw
allow=g729
allow=gsm
allow=slinear
canreinvite=no
tos=0x18
insecure=very
nat=yes
dtmfmode=info
maxexpirey=3600
defaultexpirey=600
pedantic=yes

register => 8723108:[email protected]/8723108

[sipgate-out]
type=friend
username=8723108
secret=xxxxxxxx
host=sipgate.de
fromuser=8723108
fromdomain=sipgate.de
context=default
canreinvite=no
qualify=yes
insecure=very
nat=yes
dtmfmode=info
tos=0x18

modules.conf:

Code:
;
; Asterisk configuration file
;
; Module Loader configuration file
;

[modules]
autoload=yes
;
; If you want, load the GTK console right away.
; Don't load the KDE console since
; it's not as sophisticated right now.
;
noload => pbx_gtkconsole.so
;load => pbx_gtkconsole.so
noload => pbx_kdeconsole.so
;
; Intercom application is obsoleted by
; chan_oss.  Don't load it.
;
noload => app_intercom.so
;
; Explicitly load the chan_modem.so early on to be sure
; it loads before any of the chan_modem_* 's afte rit
;
load => chan_modem.so
load => res_musiconhold.so
;
; Load either OSS or ALSA, not both
; By default, load OSS only (automatically) and do not load ALSA
;
noload => chan_alsa.so
noload => chan_oss.so
;
; DIRKS neue Eintragungen
load => chan_capi.so
;
; Module names listed in "global" section will have symbols globally
; exported to modules loaded after them.
;
[global]
chan_modem.so=yes
chan_capi.so=yes

extensions.conf:
Code:
[sipout]
exten => _X.,1,SetCallerId,8723108
exten => _X.,2,Dial(SIP/${EXTEN}@sipgate-out,30,trg)
exten => _X.,3,Hangup

Ausschnitt aus meinem iptables-Skript:
Code:
# SIP on UDP port 5060. Other SIP servers may need TCP port 5060 as well
iptables -I INPUT -p udp -m udp --dport 5060:5061 -j ACCEPT
# IAX2- the IAX protocol
iptables -I INPUT -p udp -m udp --dport 4569 -j ACCEPT
# IAX - most have switched to IAX v2, or ought to
iptables -I INPUT -p udp -m udp --dport 5036 -j ACCEPT
# RTP - the media stream
iptables -I INPUT -p udp -m udp --dport 10000:20000 -j ACCEPT
# MGCP - if you use media gateway control protocol in your configuration
iptables -I INPUT -p udp -m udp --dport 2727 -j ACCEPT

So, und jetzt zum wichtigsten! Beim Start mit "asterisk -vvvvvvgc" erhalte ich hinter den vielen Startup-Meldungen folgendes:

Code:
............
[chan_sip.so] => (Session Initiation Protocol (SIP))
  == Parsing '/etc/asterisk/sip.conf': Found
  == SIP Listening on 0.0.0.0:5060
  == Using TOS bits 24
  == Registered channel type 'SIP' (Session Initiation Protocol (SIP))
  == Registered application 'SIPDtmfMode'
    -- parse_srv: SRV mapped to host proxy.de.sipgate.net, port 5060
  == Parsing '/etc/asterisk/enum.conf': Found
  == Parsing '/etc/asterisk/extconfig.conf': Found
  == Parsing '/etc/asterisk/logger.conf': Found
Asterisk Event Logger restarted
  == Parsing '/etc/asterisk/manager.conf': Found
  == Parsing '/etc/asterisk/enum.conf': Found
  == Parsing '/etc/asterisk/rtp.conf': Found
  == RTP Allocating from port range 10000 -> 20000
Asterisk Ready.
*CLI> May 15 12:56:40 NOTICE[12187]: chan_sip.c:6836 handle_response: Failed to authenticate on REGISTER to '<sip:[email protected]>;tag=as75cc46ed'
May 15 12:56:59 NOTICE[12187]: chan_sip.c:4052 sip_reg_timeout:    -- Registration for '[email protected]' timed out, trying again
    -- parse_srv: SRV mapped to host proxy.de.sipgate.net, port 5060
May 15 12:57:00 NOTICE[12187]: chan_sip.c:6836 handle_response: Failed to authenticate on REGISTER to '<sip:[email protected]>;tag=as1808d0b5'

Und mit "sip debug" sieht es dann wie folgt aus:
Code:
SIP Debugging Enabled
*CLI> May 15 12:57:39 NOTICE[12187]: chan_sip.c:4052 sip_reg_timeout:    -- Registration for '[email protected]' timed out, trying again
    -- parse_srv: SRV mapped to host proxy.de.sipgate.net, port 5060
12 headers, 0 lines
Reliably Transmitting:
REGISTER sip:sipgate.de SIP/2.0
Via: SIP/2.0/UDP 213.54.68.93:5060;branch=z9hG4bK1a5a206b
From: <sip:[email protected]>;tag=as32ca772c
To: <sip:[email protected]>
Call-ID: [email protected]
CSeq: 111 REGISTER
User-Agent: Asterisk PBX
Authorization: Digest username="8723108", realm="sipgate.de", algorithm=MD5, uri="sip:sipgate.de", nonce="42872c3eb2c51e63063d8bd4295ff3973d8e54c7", response="dbb2ff237f668a91932f63735e89ced1", opaque=""
Expires: 600
Contact: <sip:[email protected]>
Event: registration
Content-Length: 0

 (no NAT) to 217.10.79.9:5060
11 headers, 0 lines
Reliably Transmitting:
OPTIONS sip:217.10.79.9 SIP/2.0
Via: SIP/2.0/UDP 213.54.68.93:5060;branch=z9hG4bK519224ac
From: "asterisk" <sip:[email protected]>;tag=as2e8fc4ac
To: <sip:217.10.79.9>
Contact: <sip:[email protected]>
Call-ID: [email protected]
CSeq: 102 OPTIONS
User-Agent: Asterisk PBX
Date: Sun, 15 May 2005 10:57:39 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER
Content-Length: 0

 (no NAT) to 217.10.79.9:5060


Sip read:
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 213.54.68.93:5060;branch=z9hG4bK1a5a206b
From: <sip:[email protected]>;tag=as32ca772c
To: <sip:[email protected]>;tag=b11cb9bb270104b49a99a995b8c68544.5d4d
Call-ID: [email protected]
CSeq: 111 REGISTER
WWW-Authenticate: Digest realm="sipgate.de", nonce="42872c537276975b25ff70112b8fb49652d13def"
Server: sipgate ser
Content-Length: 0
Warning: 392 217.10.79.9:5060 "Noisy feedback tells:  pid=25494 req_src_ip=213.54.68.93 req_src_port=5060 in_uri=sip:sipgate.de out_uri=sip:sipgate.de via_cnt==1"


10 headers, 0 lines
Responding to challenge, registration to domain/host name sipgate.de
12 headers, 0 lines
Reliably Transmitting:
REGISTER sip:sipgate.de SIP/2.0
Via: SIP/2.0/UDP 213.54.68.93:5060;branch=z9hG4bK1e7bdfaf
From: <sip:[email protected]>;tag=as32ca772c
To: <sip:[email protected]>;tag=b11cb9bb270104b49a99a995b8c68544.5d4d
Call-ID: [email protected]
CSeq: 112 REGISTER
User-Agent: Asterisk PBX
Authorization: Digest username="8723108", realm="sipgate.de", algorithm=MD5, uri="sip:sipgate.de", nonce="42872c537276975b25ff70112b8fb49652d13def", response="1fa38aff0163deec7f0180febbb85d72", opaque=""
Expires: 600
Contact: <sip:[email protected]>
Event: registration
Content-Length: 0

 (no NAT) to 217.10.79.9:5060


Sip read:
SIP/2.0 482 Loop Detected
Via: SIP/2.0/UDP 213.54.68.93:5060;branch=z9hG4bK519224ac
From: "asterisk" <sip:[email protected]>;tag=as2e8fc4ac
To: <sip:217.10.79.9>;tag=b11cb9bb270104b49a99a995b8c68544.9850
Call-ID: [email protected]
CSeq: 102 OPTIONS
Server: sipgate ser
Content-Length: 0
Warning: 392 217.10.79.9:5060 "Noisy feedback tells:  pid=25492 req_src_ip=213.54.68.93 req_src_port=5060 in_uri=sip:217.10.79.9 out_uri=sip:217.10.79.9 via_cnt==1"


9 headers, 0 lines
Destroying call '[email protected]'


Sip read:
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 213.54.68.93:5060;branch=z9hG4bK1e7bdfaf
From: <sip:[email protected]>;tag=as32ca772c
To: <sip:[email protected]>;tag=b11cb9bb270104b49a99a995b8c68544.5d4d
Call-ID: [email protected]
CSeq: 112 REGISTER
WWW-Authenticate: Digest realm="sipgate.de", nonce="42872c537276975b25ff70112b8fb49652d13def"
Server: sipgate ser
Content-Length: 0
Warning: 392 217.10.79.9:5060 "Noisy feedback tells:  pid=25494 req_src_ip=213.54.68.93 req_src_port=5060 in_uri=sip:sipgate.de out_uri=sip:sipgate.de via_cnt==1"


10 headers, 0 lines
Responding to challenge, registration to domain/host name sipgate.de
12 headers, 0 lines
Reliably Transmitting:
REGISTER sip:sipgate.de SIP/2.0
Via: SIP/2.0/UDP 213.54.68.93:5060;branch=z9hG4bK56265472
From: <sip:[email protected]>;tag=as32ca772c
To: <sip:[email protected]>;tag=b11cb9bb270104b49a99a995b8c68544.5d4d
Call-ID: [email protected]
CSeq: 113 REGISTER
User-Agent: Asterisk PBX
Authorization: Digest username="8723108", realm="sipgate.de", algorithm=MD5, uri="sip:sipgate.de", nonce="42872c537276975b25ff70112b8fb49652d13def", response="1fa38aff0163deec7f0180febbb85d72", opaque=""
Expires: 600
Contact: <sip:[email protected]>
Event: registration
Content-Length: 0

 (no NAT) to 217.10.79.9:5060


Sip read:
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 213.54.68.93:5060;branch=z9hG4bK56265472
From: <sip:[email protected]>;tag=as32ca772c
To: <sip:[email protected]>;tag=b11cb9bb270104b49a99a995b8c68544.5d4d
Call-ID: [email protected]
CSeq: 113 REGISTER
WWW-Authenticate: Digest realm="sipgate.de", nonce="42872c537276975b25ff70112b8fb49652d13def"
Server: sipgate ser
Content-Length: 0
Warning: 392 217.10.79.9:5060 "Noisy feedback tells:  pid=25488 req_src_ip=213.54.68.93 req_src_port=5060 in_uri=sip:sipgate.de out_uri=sip:sipgate.de via_cnt==1"


10 headers, 0 lines
May 15 12:57:40 NOTICE[12187]: chan_sip.c:6836 handle_response: Failed to authenticate on REGISTER to '<sip:[email protected]>;tag=as32ca772c'
Destroying call '[email protected]'

Beim Aufruf von "sip show registry" erhalte ich folgendes:

*CLI> sip show registry
Host Username Refresh State
sipgate.de:5060 8723108 600 Auth. Sent

Hat jemand einen Tipp wodurch die Meldung "Failed to authenticate on REGISTER" verursacht wird?

Vielen Dank schon jetzt :-)
Gruss,
Dirk
 
Hallo;
vielleicht ist Dein Problem etwas ganz profanes:
Benutzername und Passwort für den Login bei sipgate.de sind nicht das Gleiche wie username und secret in der sip.conf. Aber daran hast Du vielleicht selbst schon gedacht...

Grüße
Günter
 
Hallo Günter,

ja, wie dumm von mir :oops: Es lag tatsächlich an dem falschen Passwort!

Warum ich mir die Debug-Infos nicht schon eher genauer angesehen habe, weiss ich auch nicht:

Code:
Sip read:
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 213.54.68.93:5060;branch=z9hG4bK1a5a206b

Aber ob ich ohne deinen Hinweis so schnell drauf gekommen wäre, weiss ich nicht :) Daher nochmal vielen Dank!

Gruss,
Dirk

PS: Jetzt versuche ich mich gerade daran 4 IP-Telefone und verschiedene Provider in der Asterisk-Konfig unterzubringen. Ich meld mich garantiert kurzfristig wieder :lol:
 
Viel Erfolg, Dirk; und wegen meines Hinweises:

auch ein blindes Huhn findet mal ein Korn.

Mir ging es bei meinem Asterisk schon genauso wie Dir; manchmal ist schon ein fehlendes Komma oder ein Punkt zuviel der Auslöser allen Übels. Oftmals hilft da schon jemand, der mal Korrektur liest... und vielleicht von dem, was er da gerade liest, überhaupt keine Ahnung hat. Hauptsache, die Syntax stimmt.

Grüße
Günter
 
^^ ein WAHRES WORT dem jeder hier zustimmen kann ;-)

Gruss
Frank
 
ploieel schrieb:
Mir ging es bei meinem Asterisk schon genauso wie Dir; manchmal ist schon ein fehlendes Komma oder ein Punkt zuviel der Auslöser allen Übels. Oftmals hilft da schon jemand, der mal Korrektur liest... und vielleicht von dem, was er da gerade liest, überhaupt keine Ahnung hat. Hauptsache, die Syntax stimmt.

Grüße
Günter

Das ging mir gestern und heute noch ein paar Mal so! Aber jetzt laufen 3 sipgate-Accounts und 3 Telefone komplett über Asterisk :-) Sogar Voicemail und Kurzwahlen funktionieren. Naja, wenig professionell, aber es geht. Jetzt suche ich noch nach kleinen Problemlösungen, aber mit dem Forum hier und auch mit Hilfe von voip-info.org (kann ich nur empfehlen!) kann man ein Problem nach dem anderen lösen... Dafür nochmal Danke :-)

Jetzt hoffe ich, dass ich auch mal anderen helfen kann!
Gruss,
Dirk
 
Kostenlos!

Statistik des Forums

Themen
248,469
Beiträge
2,292,140
Mitglieder
377,911
Neuestes Mitglied
FricktEuch