Asterisk mit ausgehende Gespräche funktioniert nicht!

ACBedard

Neuer User
Mitglied seit
9 Nov 2005
Beiträge
8
Punkte für Reaktionen
0
Punkte
0
Ich hab folgendes Problem! Ich habe die Asterisk bei einem VOIP Anbieter registriert, aber es können keine ausgehende Gespräche geführt werden.
Als nächstes mal meine SIP.CONF:

Code:
[general]
 port = 5060
 bindaddr = 0.0.0.0
 srvlookup=yes
 context = default
 disallow=all
 allow=gsm
 allow=ulaw
 allow=alaw
 register => acountname:passwort:[email protected]/nummer

[aixtra]
 type=peer
 username=acountname
 host=aixtra.com
 fromuser=acountname
 fromdomain=aixtra.com
 nat=no
 context=default
 canreinvite=no
 qualify=no
 insecure=very
 dtmfmode=info
 tos=0x18

[1234]
 type=friend
 username=1234
 secret=test
 host=dynamic
 disallow=all
 allow=ulaw
 allow=alaw
 dtmfmode=rfc2833
 context=aixtra

Und als nächstes meine EXTENSIONS.CONF:

Code:
[default]
 exten => ,1,Dial(SIP/${EXTEN},60)
 exten => ,2,Congestion
 exten => ,102,Busy

[aixtra]
 include => default
 exten => _9.,1,Dial(SIP/${EXTEN:1}@aixtra,60)
 exten => _9.,2,Congestion
 exten => _9.,102,Busy

 exten => 1234,1,Dial(SIP/${EXTEN},60)
 exten => 1234,2,Congestion
 exten => 1234,102,Busy

Wenn ich "sip show peers" eingebe, kommt folgendes:
Code:
Name/username              Host            Dyn Nat ACL Port     Status
1234/1234                  192.168.1.248    D          5060     Unmonitored
aixtra/acountname        81.24.32.191                5060     Unmonitored
2 sip peers [2 online , 0 offline]

Wenn ich aber nun ein ausgehendes Gespräch führen möchte kommt folgender Fehler auf der CLI:
Code:
Nov 30 12:16:03 NOTICE[4750]: chan_sip.c:9514 handle_response_invite: Failed to authenticate on INVITE to '"name" <sip:[email protected]>;tag=as6f2b5ca8'

Was kann das sein. Ich habe auch schon verschiedene Sachen ausprobiert bei dem Punkt "register" in der SIP.CONF. Aber das hilft nicht viel. Entweder kommen noch mehr Fehlermeldungen oder die gleiche!

Vielleicht weiß jemand bescheid, vielen Dank schon mal für euere Hilfe!
 
Wenn Du 'sip show registry' in die CLI eingibst, zeigt Asterisk dann an, dass Du "registered" bist? Da könnte es eventuell dran liegen. Sonst mal einen "sip debug" in der Situation machen. Da kann ma auch so einiges mehr erkennen.
 
Wenn ich "sip show registry" eingebe, dann zeigt er mir an das er "registered"! Also daran liegt es nicht, aber danke schon mal, eine Fehlerquelle weniger. Ich schau mal was im "sip debug" Modus so alles zum Vorschein kommt!
 
Wenn ich "sip debug" enable, dann kommen folgende Messages:

Code:
Transmitting (no NAT) to 192.168.1.248:5060:
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 192.168.1.248:5060;branch=z9hG4bK323997859;received=192.168.1.248
From: <sip:[email protected]:5060>;tag=1132289201
To: <sip:[email protected]:5060>
Call-ID: [email protected]
CSeq: 12 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Max-Forwards: 70
Contact: <sip:[email protected]>
Content-Length: 0


---
Transmitting (no NAT) to 192.168.1.248:5060:
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.1.248:5060;branch=z9hG4bK323997859;received=192.168.1.248
From: <sip:[email protected]:5060>;tag=1132289201
To: <sip:[email protected]:5060>;tag=as2457bf45
Call-ID: [email protected]
CSeq: 12 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Max-Forwards: 70
Expires: 3600
Contact: <sip:[email protected]:5060>;expires=3600
Date: Wed, 30 Nov 2005 11:55:06 GMT
Content-Length: 0


---
Scheduling destruction of call '[email protected]' in 15000 ms
Nov 30 12:55:16 NOTICE[4784]: chan_sip.c:5237 sip_reregister:    -- Re-registration for  [email][email protected][/email]
REGISTER 13 headers, 0 lines
Reliably Transmitting (no NAT) to 81.24.32.191:5060:
REGISTER sip:aixtra.com SIP/2.0
Via: SIP/2.0/UDP 192.168.1.250:5060;branch=z9hG4bK317f82f1;rport
From: <sip:[email protected]>;tag=as041c8269
To: <sip:[email protected]>
Call-ID: [email protected]
CSeq: 163 REGISTER
User-Agent: Asterisk PBX
Max-Forwards: 70
Authorization: Digest username="acountname", realm="aixtra.com", algorithm=MD5, uri="sip:aixtra.com", nonce="8cb202527172858f97c54d5443ee658e", response="59a3a31f4c99cc0288d73375147ac7a9", opaque=""
Expires: 120
Contact: <sip:[email protected]>
Event: registration
Content-Length: 0


---
complete*CLI>
<-- SIP read from 81.24.32.191:5060:
SIP/2.0 200 Ok
v: SIP/2.0/UDP 192.168.1.250:5060;branch=z9hG4bK317f82f1;rport=1025;received=62.112.64.55
f: <sip:[email protected]>;tag=as041c8269
t: <sip:[email protected]>
i: [email protected]
CSeq: 163 REGISTER
m: <sip:[email protected]>;expires=19
l: 0


--- (8 headers 0 lines)---
Scheduling destruction of call '[email protected]' in 32000 ms
Nov 30 12:55:16 NOTICE[4784]: chan_sip.c:9659 handle_response_register: Outbound Registration: Expiry for aixtra.com is 19 sec (Scheduling reregistration in 15 s)
Destroying call '[email protected]'
Destroying call '[email protected]'
Nov 30 12:55:32 NOTICE[4784]: chan_sip.c:5237 sip_reregister:    -- Re-registration for  [email][email protected][/email]
REGISTER 13 headers, 0 lines
Reliably Transmitting (no NAT) to 81.24.32.191:5060:
REGISTER sip:aixtra.com SIP/2.0
Via: SIP/2.0/UDP 192.168.1.250:5060;branch=z9hG4bK0dfbcd6a;rport
From: <sip:[email protected]>;tag=as7107a8a5
To: <sip:[email protected]>
Call-ID: [email protected]
CSeq: 164 REGISTER
User-Agent: Asterisk PBX
Max-Forwards: 70
Authorization: Digest username="acountname", realm="aixtra.com", algorithm=MD5, uri="sip:aixtra.com", nonce="8cb202527172858f97c54d5443ee658e", response="59a3a31f4c99cc0288d73375147ac7a9", opaque=""
Expires: 120
Contact: <sip:[email protected]>
Event: registration
Content-Length: 0

Und dann wiederholt sich das immer wieder! Es scheint so alsob er sich für einen kurzen Moment registriert, aber dann wieder rausgeworfen wird. Diese Messages kommen selbst wen ich nicht probiere rauszutelefonieren!

Wenn ich raustelefonieren möchte, kommt noch viel mehr, aber vielleicht liegt es schon daran?
 
Hmm, ich bekomme jetzt alle paar Minuten folgenden Fehler:
Code:
Nov 30 14:00:48 WARNING[4956]: chan_sip.c:9599 handle_response_register: Got 200 OK on REGISTER that isn't a register
Nov 30 14:02:50 WARNING[4956]: chan_sip.c:9599 handle_response_register: Got 200 OK on REGISTER that isn't a register
Nov 30 14:03:51 WARNING[4956]: chan_sip.c:9599 handle_response_register: Got 200 OK on REGISTER that isn't a register
Nov 30 14:04:52 WARNING[4956]: chan_sip.c:9599 handle_response_register: Got 200 OK on REGISTER that isn't a register
Nov 30 14:07:38 WARNING[4956]: chan_sip.c:9599 handle_response_register: Got 200 OK on REGISTER that isn't a register
Nov 30 14:08:24 WARNING[4956]: chan_sip.c:9599 handle_response_register: Got 200 OK on REGISTER that isn't a register
Nov 30 14:10:26 WARNING[4956]: chan_sip.c:9599 handle_response_register: Got 200 OK on REGISTER that isn't a register
Nov 30 14:11:12 WARNING[4956]: chan_sip.c:9599 handle_response_register: Got 200 OK on REGISTER that isn't a register
Nov 30 14:11:42 WARNING[4956]: chan_sip.c:9599 handle_response_register: Got 200 OK on REGISTER that isn't a register
Nov 30 14:11:57 WARNING[4956]: chan_sip.c:9599 handle_response_register: Got 200 OK on REGISTER that isn't a register
Nov 30 14:12:13 WARNING[4956]: chan_sip.c:9599 handle_response_register: Got 200 OK on REGISTER that isn't a register
Nov 30 14:15:31 WARNING[4956]: chan_sip.c:9599 handle_response

Da scheint wohl noch mehr nicht in Ordnung zu sein. Weiß jemand bescheid!
 
Nov 30 14:00:48 WARNING[4956]: chan_sip.c:9599 handle_response_register: Got 200 OK on REGISTER that isn't a register

Das kannst Du ignorieren.

Hast Du Deinen VoIP-Provider schonmal nach einer Musterkonfiguration für Asterisk gefragt ? Es sieht so aus, als würde er ein spezielles Authentifizierungsverfahren verwenden (ähnlich wie bei T-Online VoIP), aber das müßte man eben genau wissen.
 
Für Asterisk jetzt speziell nicht. Kann mir aber garnicht vorstellen das es da was großartig besonderes gibt. Immerhin läuft der Account wenn ich die Daten direkt in einem Snom 190 eingebe, ohnen den Umweg über die Asterisk. Dann läuft das einwandfrei. Muss der VOIP Anbieter denn irgendwas spezielles unterstützen damit das mit Asterisk läuft. Das wäre natürlich ansich ein bisschen blöd. Es müsste doch an sich reichen wenn beide (Asterisk wie VOIP Anbieter) SIP unterstützen! Alles andere ist natürlich nicht wirklich eine Lösung! Man kann ja nicht erwarten das der VOIP Anbieter jede Software die es auf der Welt gibt kennt und eigenen Support anbietet. Wofür gibt es denn einheitliche Protokolle und Richtlinien?

Na ja vielleicht weiß ja noch jemand Rat!
 
Der ganze Scheiss kommt, wenn ich ein Gespräch anfangen möchte und "sip debug" enabled habe!!

Code:
User-Agent: Asterisk PBX
Max-Forwards: 70
Date: Thu, 01 Dec 2005 11:29:35 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Content-Type: application/sdp
Content-Length: 207

v=0
o=root 4949 4949 IN IP4 192.168.1.250
s=session
c=IN IP4 192.168.1.250
t=0 0
m=audio 16732 RTP/AVP 0 3 8
a=rtpmap:0 PCMU/8000
a=rtpmap:3 GSM/8000
a=rtpmap:8 PCMA/8000
a=silenceSupp:off - - - -

---
complete*CLI>
<-- SIP read from 81.24.32.191:5060:
SIP/2.0 407 Proxy Authentication Required
v: SIP/2.0/UDP 192.168.1.250:5060;branch=z9hG4bK1543de0b;rport=1025;received=62.112.64.55
f: "acount" <sip:[email protected]>;tag=as65d332b5
t: <sip:[email protected]>
i: [email][email protected][/email]
CSeq: 102 INVITE
Proxy-Authenticate: Digest realm="aixtra.com", domain="sip:aixtra.com", nonce="f06db3a1be4dbbe1ffebd75f7673e34e", opaque="", stale=TRUE, algorithm=MD5
l: 0


--- (8 headers 0 lines)---
Transmitting (no NAT) to 81.24.32.191:5060:
ACK sip:[email protected] SIP/2.0
Via: SIP/2.0/UDP 192.168.1.250:5060;branch=z9hG4bK1543de0b;rport
From: "acount" <sip:[email protected]>;tag=as65d332b5
To: <sip:[email protected]>
Contact: <sip:[email protected]>
Call-ID: [email][email protected][/email]
CSeq: 102 ACK
User-Agent: Asterisk PBX
Max-Forwards: 70
Content-Length: 0


---
We're at 192.168.1.250 port 16732
Adding codec 0x4 (ulaw) to SDP
Adding codec 0x2 (gsm) to SDP
Adding codec 0x8 (alaw) to SDP
Reliably Transmitting (no NAT) to 81.24.32.191:5060:
INVITE sip:[email protected] SIP/2.0
Via: SIP/2.0/UDP 192.168.1.250:5060;branch=z9hG4bK70ed434a;rport
From: "acount" <sip:[email protected]>;tag=as65d332b5
To: <sip:[email protected]>
Contact: <sip:[email protected]>
Call-ID: [email][email protected][/email]
CSeq: 103 INVITE
User-Agent: Asterisk PBX
Max-Forwards: 70
Proxy-Authorization: Digest username="acount", realm="aixtra.com", algorithm=MD5, uri="sip:aixtra.com", nonce="f06db3a1be4dbbe1ffebd75f7673e34e", response="1fc6cc0b45d45d6341e52d5989d486f9", opaque=""
Date: Thu, 01 Dec 2005 11:29:35 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Content-Type: application/sdp
Content-Length: 207

v=0
o=root 4949 4950 IN IP4 192.168.1.250
s=session
c=IN IP4 192.168.1.250
t=0 0
m=audio 16732 RTP/AVP 0 3 8
a=rtpmap:0 PCMU/8000
a=rtpmap:3 GSM/8000
a=rtpmap:8 PCMA/8000
a=silenceSupp:off - - - -

---
complete*CLI>
<-- SIP read from 81.24.32.191:5060:
SIP/2.0 407 Proxy Authentication Required
v: SIP/2.0/UDP 192.168.1.250:5060;branch=z9hG4bK70ed434a;rport=1025;received=62.112.64.55
f: "acount" <sip:[email protected]>;tag=as65d332b5
t: <sip:[email protected]>
i: [email][email protected][/email]
CSeq: 103 INVITE
Proxy-Authenticate: Digest realm="aixtra.com", domain="sip:aixtra.com", nonce="3abed6f9446ff41f4fa17f0e5713a61e", opaque="", stale=TRUE, algorithm=MD5
l: 0


--- (8 headers 0 lines)---
Transmitting (no NAT) to 81.24.32.191:5060:
ACK sip:[email protected] SIP/2.0
Via: SIP/2.0/UDP 192.168.1.250:5060;branch=z9hG4bK70ed434a;rport
From: "acount" <sip:[email protected]>;tag=as65d332b5
To: <sip:[email protected]>
Contact: <sip:[email protected]>
Call-ID: [email][email protected][/email]
CSeq: 103 ACK
User-Agent: Asterisk PBX
Max-Forwards: 70
Content-Length: 0


---
We're at 192.168.1.250 port 16732
Adding codec 0x4 (ulaw) to SDP
Adding codec 0x2 (gsm) to SDP
Adding codec 0x8 (alaw) to SDP
Reliably Transmitting (no NAT) to 81.24.32.191:5060:
INVITE sip:[email protected] SIP/2.0
Via: SIP/2.0/UDP 192.168.1.250:5060;branch=z9hG4bK19143e98;rport
From: "acount" <sip:[email protected]>;tag=as65d332b5
To: <sip:[email protected]>
Contact: <sip:[email protected]>
Call-ID: [email][email protected][/email]
CSeq: 104 INVITE
User-Agent: Asterisk PBX
Max-Forwards: 70
Proxy-Authorization: Digest username="acount", realm="aixtra.com", algorithm=MD5, uri="sip:aixtra.com", nonce="3abed6f9446ff41f4fa17f0e5713a61e", response="5dc5361391772c1f1c8a6a1102e1b85c", opaque=""
Date: Thu, 01 Dec 2005 11:29:35 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Content-Type: application/sdp
Content-Length: 207

v=0
o=root 4949 4951 IN IP4 192.168.1.250
s=session
c=IN IP4 192.168.1.250
t=0 0
m=audio 16732 RTP/AVP 0 3 8
a=rtpmap:0 PCMU/8000
a=rtpmap:3 GSM/8000
a=rtpmap:8 PCMA/8000
a=silenceSupp:off - - - -

---
complete*CLI>
<-- SIP read from 81.24.32.191:5060:
SIP/2.0 407 Proxy Authentication Required
v: SIP/2.0/UDP 192.168.1.250:5060;branch=z9hG4bK19143e98;rport=1025;received=62.112.64.55
f: "acount" <sip:[email protected]>;tag=as65d332b5
t: <sip:[email protected]>
i: [email][email protected][/email]
CSeq: 104 INVITE
Proxy-Authenticate: Digest realm="aixtra.com", domain="sip:aixtra.com", nonce="0dce3c770d7f28e6787e77ccee094174", opaque="", stale=TRUE, algorithm=MD5
l: 0


--- (8 headers 0 lines)---
Transmitting (no NAT) to 81.24.32.191:5060:
ACK sip:[email protected] SIP/2.0
Via: SIP/2.0/UDP 192.168.1.250:5060;branch=z9hG4bK19143e98;rport
From: "acount" <sip:[email protected]>;tag=as65d332b5
To: <sip:[email protected]>
Contact: <sip:[email protected]>
Call-ID: [email][email protected][/email]
CSeq: 104 ACK
User-Agent: Asterisk PBX
Max-Forwards: 70
Content-Length: 0


---
We're at 192.168.1.250 port 16732
Adding codec 0x4 (ulaw) to SDP
Adding codec 0x2 (gsm) to SDP
Adding codec 0x8 (alaw) to SDP
Reliably Transmitting (no NAT) to 81.24.32.191:5060:
INVITE sip:[email protected] SIP/2.0
Via: SIP/2.0/UDP 192.168.1.250:5060;branch=z9hG4bK1c498dad;rport
From: "acount" <sip:[email protected]>;tag=as65d332b5
To: <sip:[email protected]>
Contact: <sip:[email protected]>
Call-ID: [email][email protected][/email]
CSeq: 105 INVITE
User-Agent: Asterisk PBX
Max-Forwards: 70
Proxy-Authorization: Digest username="acount", realm="aixtra.com", algorithm=MD5, uri="sip:aixtra.com", nonce="0dce3c770d7f28e6787e77ccee094174", response="fe9905c767013a04c32e6ffbfe44b30d", opaque=""
Date: Thu, 01 Dec 2005 11:29:35 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Content-Type: application/sdp
Content-Length: 207

v=0
o=root 4949 4952 IN IP4 192.168.1.250
s=session
c=IN IP4 192.168.1.250
t=0 0
m=audio 16732 RTP/AVP 0 3 8
a=rtpmap:0 PCMU/8000
a=rtpmap:3 GSM/8000
a=rtpmap:8 PCMA/8000
a=silenceSupp:off - - - -

---
complete*CLI>
<-- SIP read from 81.24.32.191:5060:
SIP/2.0 407 Proxy Authentication Required
v: SIP/2.0/UDP 192.168.1.250:5060;branch=z9hG4bK1c498dad;rport=1025;received=62.112.64.55
f: "acount" <sip:[email protected]>;tag=as65d332b5
t: <sip:[email protected]>
i: [email][email protected][/email]
CSeq: 105 INVITE
Proxy-Authenticate: Digest realm="aixtra.com", domain="sip:aixtra.com", nonce="e321f99f70f98dff66eddaab8a4cbb1a", opaque="", stale=TRUE, algorithm=MD5
l: 0


--- (8 headers 0 lines)---
Transmitting (no NAT) to 81.24.32.191:5060:
ACK sip:[email protected] SIP/2.0
Via: SIP/2.0/UDP 192.168.1.250:5060;branch=z9hG4bK1c498dad;rport
From: "acount <sip:[email protected]>;tag=as65d332b5
To: <sip:[email protected]>
Contact: <sip:[email protected]>
Call-ID: [email][email protected][/email]
CSeq: 105 ACK
User-Agent: Asterisk PBX
Max-Forwards: 70
Content-Length: 0


---
Dec  1 12:29:35 NOTICE[4956]: chan_sip.c:9514 handle_response_invite: Failed to authenticate on INVITE to '"acount" <sip:[email protected]>;tag=as65d332b5'
Transmitting (no NAT) to 192.168.1.248:5060:
SIP/2.0 486 Busy Here
Via: SIP/2.0/UDP 192.168.1.248:5060;branch=z9hG4bK2974367907;received=192.168.1.248
From: "acount" <sip:[email protected]>;tag=1182292517
To: <sip:[email protected]>;tag=as6d1d396e
Call-ID: [email protected]
CSeq: 2 INVITE
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Max-Forwards: 70
Contact: <sip:[email protected]>
Content-Length: 0
X-Asterisk-HangupCause: Normal Clearing


---
complete*CLI>
<-- SIP read from 192.168.1.248:5060:
ACK sip:[email protected] SIP/2.0
Via: SIP/2.0/UDP 192.168.1.248:5060;branch=z9hG4bK2974367907
To: <sip:[email protected]>;tag=as6d1d396e
From: "acount" <sip:[email protected]>;tag=1182292517
Call-ID: [email protected]
CSeq: 2 ACK
Max-Forwards: 70
Content-Length: 0


--- (8 headers 0 lines)---
Destroying call '[email protected]'
Destroying call '[email protected]'

Wer hat da jetzt ein Problem. Mein Provider oder Asterisk!
 

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.