Failed to authenticate on INVITE to...

Dakapo

Mitglied
Mitglied seit
10 Aug 2004
Beiträge
380
Punkte für Reaktionen
0
Punkte
16
Guten Abend!

Hab ja schon gesagt, dass ich mich momentan mit einem neuen Provider im Ausland beschäftige, der in den nächsten Wochen starten wird. Nun hab ich ein kleines Problemchen. Die eingehenden Anrufe funktionieren schon 1A unter Asterisk.

Bei den ausgehenden Anrufen bekomme ich folgendes:
Code:
Oct 29 18:39:07 NOTICE[98310]: chan_sip.c:6570 handle_response: Failed to authenticate on INVITE to '"123456789" <sip:[email protected]>;tag=as4ec9df1c'

Hat jemand von Euch eine Idee? Mit X-Lite funktionieren die ausgehenden Anrufe ohne Probleme.

Hier meine sip.conf:
Code:
register => 123456789:[email protected]/123456789

[xxxx]
type=friend
username=123456789
secret=passwd
host=sip.xxxx.xxx
fromuser=123456789
fromdomain=sip.xxxx.xxx
context=default
canreinvite=no
qualify=yes
disallow=all
allow=alaw
insecure=very
nat=no
dtmf=rfc2833
tos=0x18
und meine extensions.conf:
Code:
exten => _#3.,1,SetCallerID(123456789)
exten => _#3.,2,Dial(SIP/${EXTEN:2}@xxxx,60,tT)
exten => _#3.,3,Congestion
exten => _#3.,4,Busy
exten => _#3.,5,Hangup
 
Hi Dakapo,

wir haben das gleiche Problem mit dem gleichen Provider. Im debug modus sehe ich ein 401 - Unauthorized. Vielleicht hängt das mit dem fehlenden outbound-proxy support in chan_sip.c zusammen oder vielleicht erlaubt der Provider nur TCP (Asterisk kann ja nur UDP angeblich).

Man könnte auch mal die experimentelle chan_sip2.c ausprobieren (Asterisk neu kompilieren), wenn man mutig genug ist *g* , aber auch damit soll es noch Probleme geben... dann wieder anderer Art...

http://bugs.digium.com/bug_view_page.php?bug_id=0000759

Gruß,
Tin
 
Hmm, dann muss ich den Provider bzgl. UDP mal fragen. Hast Du das mit chan_sip2.c schonmal ausprobiert?
 
register => 123456789:p[email protected]/123456789

[xxxx]
type=friend
...

Versuch doch mal, die beiden fettgedruckten Teile gleich zu benennen, also so

Code:
register => 123456789:[email protected]/123456789

[123456789]
type=friend
...

und natürlich auch in der extension.conf den DIAL entsprechend anzupassen.

Code:
exten => _#3.,2,Dial(SIP/${EXTEN:2}@123456789,60,tT)
 
@beta:
Hmm, hat leider keine Änderug gebracht :(
 
Dann müßte man sich mal ein komplettes SIP-Trace anschauen, um genau zu sehen, was da passiert.
 
@betateilchen:

Wie kann man denn so ein SIP-Trace machen?
 
@Dani
die Console starten mit z.B.
asterisk -vcr | tee /var/log/asterisk/log
auf der Console dann eingeben:
sip debug
dann versuchen einen Anruf zu tätigen
sip no debug
Console beenden
vi /var/log/asterisk/log
Da steht alles drin was so abgeht ;)

Achtung: Wenn Du das ohne es zu editieren hier reinstellst, gibst Du die IP des Providers bekannt *g*

Gruß,
Tin
 
Dakapo schrieb:
Hmm, dann muss ich den Provider bzgl. UDP mal fragen. Hast Du das mit chan_sip2.c schonmal ausprobiert?

Nein, hab ich noch nicht.... wollte erstmal hören, was der Provider zu dem Dilemma sagt ;) Aber bis jetzt gab's wohl noch keine Rückmeldung.

Gruß,
Tin
 
Gab noch keine Rückmeldung. Dann mach ich jetzt mal diesen SIP-Trace...
 
Hallo nochmal, ich habe jetzt den SIP-Trace durchgeführt. Könnt Ihr nochmal schauen, ob Ihr was damit anfangen könnt?

Code:

Asterisk CVS-HEAD-08/13/04-12:00:00-BRI-stuffed-0.1.0-RC4a, Copyright (C) 1999-2004 Digium.

Written by Mark Spencer <[email protected]>

=========================================================================

Connected to Asterisk CVS-HEAD-08/13/04-12:00:00-BRI-stuffed-0.1.0-RC4a currently running on asterisk (pid = 6569) asterisk*CLI> sip debug asterisk*CLI> 
SIP Debugging Enabled

asterisk*CLI> 

Sip read: 


OPTIONS sip:xxx.xxx.xxx.xxx SIP/2.0
Via: SIP/2.0/UDP 80.218.123.67:5060;branch=z9hG4bK4c332a06
From: "asterisk" <sip:[email protected]>;tag=as7f70185c
To: <sip:xxx.xxx.xxx.xxx>
Contact: <sip:[email protected]>
Call-ID: [email protected]
CSeq: 102 OPTIONS
User-Agent: Asterisk PBX
Date: Tue, 02 Nov 2004 20:24:54 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER
Content-Length: 0

 (no NAT) to xxx.xxx.xxx.xxx:5060


Sip read: 
SIP/2.0 200 OK
Via: SIP/2.0/UDP 80.218.123.67:5060;branch=z9hG4bK4c332a06
Record-Route: <sip:xxx.xxx.xxx.xxx;ftag=as7f70185c;lr=on>
From: "asterisk" <sip:[email protected]>;tag=as7f70185c
To: <sip:xxx.xxx.xxx.xxx>;tag=as2555aa83
Call-ID: [email protected]
CSeq: 102 OPTIONS
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER
Contact: <sip:216.128.82.10:5060>
Accept: application/sdp
Content-Length: 0

INVITE sip:[email protected] SIP/2.0
Via: SIP/2.0/UDP 80.218.123.67:5060;branch=z9hG4bK113475d2
From: "41123456789" <sip:[email protected]>;tag=as3fc7e060
To: <sip:[email protected]>
Contact: <sip:[email protected]>
Call-ID: [email protected]
CSeq: 102 INVITE
User-Agent: Asterisk PBX
Date: Tue, 02 Nov 2004 20:24:56 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER
Content-Type: application/sdp
Content-Length: 216

v=0
o=root 6591 6591 IN IP4 80.218.123.67
s=session
c=IN IP4 80.218.123.67
t=0 0
m=audio 19650 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=silenceSupp:off - - - -
 (no NAT) to 212.117.200.148:5060


Sip read: 
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 80.218.123.67:5060;branch=z9hG4bK113475d2
From: "41123456789" <sip:[email protected]>;tag=as3fc7e060
To: <sip:[email protected]>;tag=baea45a7611d9ef776323b3fa79b3a0b.0b33
Call-ID: [email protected]
CSeq: 102 INVITE
WWW-Authenticate: Digest realm="sip.STRENGGEHEIM.COM", nonce="4187ee546ed9c3f55c4884e48ac523c33bb8423c"
Server: Sip EXpress router (0.8.12 (i386/freebsd))
Content-Length: 0

ACK sip:[email protected] SIP/2.0
Via: SIP/2.0/UDP 80.218.123.67:5060;branch=z9hG4bK113475d2
From: "41123456789" <sip:[email protected]>;tag=as3fc7e060
To: <sip:[email protected]>;tag=baea45a7611d9ef776323b3fa79b3a0b.0b33
Contact: <sip:[email protected]>
Call-ID: [email protected]
CSeq: 102 ACK
User-Agent: Asterisk PBX
Content-Length: 0

 (no NAT) to 212.117.200.148:5060




INVITE sip:[email protected] SIP/2.0
Via: SIP/2.0/UDP 80.218.123.67:5060;branch=z9hG4bK2dcd328d
From: "41123456789" <sip:[email protected]>;tag=as3fc7e060
To: <sip:[email protected]>
Contact: <sip:[email protected]>
Call-ID: [email protected]
CSeq: 103 INVITE
User-Agent: Asterisk PBX
Authorization: Digest username="41123456789", realm="sip.STRENGGEHEIM.COM", algorithm=MD5, uri="sip:[email protected]", nonce="4187ee546ed9c3f55c4884e48ac523c33bb8423c", response="9bf5a67f9e5a5af0ef84dc6bb050fdd9", opaque=""
Date: Tue, 02 Nov 2004 20:24:56 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER
Content-Type: application/sdp
Content-Length: 216

v=0
o=root 6591 6592 IN IP4 80.218.123.67
s=session
c=IN IP4 80.218.123.67
t=0 0
m=audio 19650 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=silenceSupp:off - - - -
 (no NAT) to 212.117.200.148:5060


Sip read: 
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 80.218.123.67:5060;branch=z9hG4bK2dcd328d
From: "41123456789" <sip:[email protected]>;tag=as3fc7e060
To: <sip:[email protected]>;tag=baea45a7611d9ef776323b3fa79b3a0b.20db
Call-ID: [email protected]
CSeq: 103 INVITE
WWW-Authenticate: Digest realm="sip.STRENGGEHEIM.COM", nonce="4187ee546ed9c3f55c4884e48ac523c33bb8423c"
Server: Sip EXpress router (0.8.12 (i386/freebsd))
Content-Length: 0




ACK sip:[email protected] SIP/2.0
Via: SIP/2.0/UDP 80.218.123.67:5060;branch=z9hG4bK2dcd328d
From: "41123456789" <sip:[email protected]>;tag=as3fc7e060
To: <sip:[email protected]>;tag=baea45a7611d9ef776323b3fa79b3a0b.20db
Contact: <sip:[email protected]>
Call-ID: [email protected]
CSeq: 103 ACK
User-Agent: Asterisk PBX
Content-Length: 0

 (no NAT) to 212.117.200.148:5060




INVITE sip:[email protected] SIP/2.0
Via: SIP/2.0/UDP 80.218.123.67:5060;branch=z9hG4bK7887d52c
From: "41123456789" <sip:[email protected]>;tag=as3fc7e060
To: <sip:[email protected]>
Contact: <sip:[email protected]>
Call-ID: [email protected]
CSeq: 104 INVITE
User-Agent: Asterisk PBX
Authorization: Digest username="41123456789", realm="sip.STRENGGEHEIM.COM", algorithm=MD5, uri="sip:[email protected]", nonce="4187ee546ed9c3f55c4884e48ac523c33bb8423c", response="9bf5a67f9e5a5af0ef84dc6bb050fdd9", opaque=""
Date: Tue, 02 Nov 2004 20:24:56 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER
Content-Type: application/sdp
Content-Length: 216

v=0
o=root 6591 6593 IN IP4 80.218.123.67
s=session
c=IN IP4 80.218.123.67
t=0 0
m=audio 19650 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=silenceSupp:off - - - -
 (no NAT) to 212.117.200.148:5060


Sip read: 
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 80.218.123.67:5060;branch=z9hG4bK7887d52c
From: "41123456789" <sip:[email protected]>;tag=as3fc7e060
To: <sip:[email protected]>;tag=baea45a7611d9ef776323b3fa79b3a0b.12b6
Call-ID: [email protected]
CSeq: 104 INVITE
WWW-Authenticate: Digest realm="sip.STRENGGEHEIM.COM", nonce="4187ee546ed9c3f55c4884e48ac523c33bb8423c"
Server: Sip EXpress router (0.8.12 (i386/freebsd))
Content-Length: 0




ACK sip:[email protected] SIP/2.0
Via: SIP/2.0/UDP 80.218.123.67:5060;branch=z9hG4bK7887d52c
From: "41123456789" <sip:[email protected]>;tag=as3fc7e060
To: <sip:[email protected]>;tag=baea45a7611d9ef776323b3fa79b3a0b.12b6
Contact: <sip:[email protected]>
Call-ID: [email protected]
CSeq: 104 ACK
User-Agent: Asterisk PBX
Content-Length: 0

 (no NAT) to 212.117.200.148:5060



Sip read: 



CANCEL sip:[email protected] SIP/2.0
Via: SIP/2.0/UDP 80.218.123.67:5060;branch=z9hG4bK7887d52c
From: "41123456789" <sip:[email protected]>;tag=as3fc7e060
To: <sip:[email protected]>
Contact: <sip:[email protected]>
Call-ID: [email protected]
CSeq: 104 CANCEL
User-Agent: Asterisk PBX
Proxy-Authorization: Digest username="41123456789", realm="sip.STRENGGEHEIM.COM", algorithm=MD5, uri="sip:[email protected]", nonce="4187ee546ed9c3f55c4884e48ac523c33bb8423c", response="00460fa99f8f520ba30f701b1cb06d64", opaque=""
Content-Length: 0

 (no NAT) to 212.117.200.148:5060



Sip read: 
SIP/2.0 404 Not Found
Via: SIP/2.0/UDP 80.218.123.67:5060;branch=z9hG4bK7887d52c
From: "41123456789" <sip:[email protected]>;tag=as3fc7e060
To: <sip:[email protected]>;tag=baea45a7611d9ef776323b3fa79b3a0b.9ac0
Call-ID: [email protected]
CSeq: 104 CANCEL
Server: Sip EXpress router (0.8.12 (i386/freebsd))
Content-Length: 0





Sip read: 




REGISTER sip:sip.STRENGGEHEIM.COM SIP/2.0
Via: SIP/2.0/UDP 80.218.123.67:5060;branch=z9hG4bK7657e8b6
From: <sip:[email protected]>;tag=as376a5603
To: <sip:[email protected]>
Call-ID: [email protected]
CSeq: 104 REGISTER
User-Agent: Asterisk PBX
Expires: 120
Contact: <sip:[email protected]>
Event: registration
Content-Length: 0

 (no NAT) to 212.117.200.148:5060


Sip read: 
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 80.218.123.67:5060;branch=z9hG4bK7657e8b6
From: <sip:[email protected]>;tag=as376a5603
To: <sip:[email protected]>
Call-ID: [email protected]
CSeq: 104 REGISTER
Server: Sip EXpress router (0.8.12 (i386/freebsd))
Content-Length: 0





Sip read: 
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 80.218.123.67:5060;branch=z9hG4bK7657e8b6
From: <sip:[email protected]>;tag=as376a5603
To: <sip:[email protected]>;tag=baea45a7611d9ef776323b3fa79b3a0b.4cde
Call-ID: [email protected]
CSeq: 104 REGISTER
WWW-Authenticate: Digest realm="sip.STRENGGEHEIM.COM", nonce="4187ee6beff9dac740d30fa63cf79852e7f47274"
Server: Sip EXpress router (0.8.12 (i386/freebsd))
Content-Length: 0





REGISTER sip:sip.STRENGGEHEIM.COM SIP/2.0
Via: SIP/2.0/UDP 80.218.123.67:5060;branch=z9hG4bK0165ded2
From: <sip:[email protected]>;tag=as376a5603
To: <sip:[email protected]>
Call-ID: [email protected]
CSeq: 105 REGISTER
User-Agent: Asterisk PBX
Authorization: Digest username="41123456789", realm="sip.STRENGGEHEIM.COM", algorithm=MD5, uri="sip:sip.STRENGGEHEIM.COM", nonce="4187ee6beff9dac740d30fa63cf79852e7f47274", response="3a451df2557a492ce2128300d5ee14a1", opaque=""
Expires: 120
Contact: <sip:[email protected]>
Event: registration
Content-Length: 0

 (no NAT) to 212.117.200.148:5060


Sip read: 
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 80.218.123.67:5060;branch=z9hG4bK0165ded2
From: <sip:[email protected]>;tag=as376a5603
To: <sip:[email protected]>
Call-ID: [email protected]
CSeq: 105 REGISTER
Server: Sip EXpress router (0.8.12 (i386/freebsd))
Content-Length: 0





Sip read: 
SIP/2.0 200 OK
Via: SIP/2.0/UDP 80.218.123.67:5060;branch=z9hG4bK0165ded2
From: <sip:[email protected]>;tag=as376a5603
To: <sip:[email protected]>;tag=baea45a7611d9ef776323b3fa79b3a0b.4fed
Call-ID: [email protected]
CSeq: 105 REGISTER
Warning: available-funds:9.95 currency:CHF
Contact: <sip:[email protected]>;q=0.00;expires=115
Server: Sip EXpress router (0.8.12 (i386/freebsd))
Content-Length: 0
 

Statistik des Forums

Themen
244,695
Beiträge
2,216,692
Mitglieder
371,315
Neuestes Mitglied
jack-mack
Holen Sie sich 3CX - völlig kostenlos!
Verbinden Sie Ihr Team und Ihre Kunden Telefonie Livechat Videokonferenzen

Gehostet oder selbst-verwaltet. Für bis zu 10 Nutzer dauerhaft kostenlos. Keine Kreditkartendetails erforderlich. Ohne Risiko testen.

3CX
Für diese E-Mail-Adresse besteht bereits ein 3CX-Konto. Sie werden zum Kundenportal weitergeleitet, wo Sie sich anmelden oder Ihr Passwort zurücksetzen können, falls Sie dieses vergessen haben.