Hallo zusammen,
folgende Konstellation: Snom320 --> FritzBox --> Internet ---> Juniper Firewall --> Asterisk-Server
Snom Firmwarstand: 8.4.32
Asterisk-Server: Version: 11.1.2
Ich möchte mich vom externen Snom auf meine Asterisk im Firmennetz verbinden. Die Ports (SIP) auf der Juniper-Firewall wurden freigegeben. Das Snom versucht sich auch mit der Asterisk zu verbinden, scheitert allerdings dann mit einem (SIP/2.0 401 Unauthorized)
Hier der SIP Debug von der Asterisk:
Log vom Snom:
Bei der SIP,conf bin ich mir nicht ganz sicher wie ich die konfigurieren soll (wegen NAT) usw, hab hier auch schon einige Konstellationen getestet, hier der aktuelle Ausschnitt:
Vielleicht kann mir hier jemand weiterhelfen, Ich bin der Meinung, dass es am NAT scheitert, weiß aber nicht genau wo.
Vielen Dank schon mal im Voraus
LG
folgende Konstellation: Snom320 --> FritzBox --> Internet ---> Juniper Firewall --> Asterisk-Server
Snom Firmwarstand: 8.4.32
Asterisk-Server: Version: 11.1.2
Ich möchte mich vom externen Snom auf meine Asterisk im Firmennetz verbinden. Die Ports (SIP) auf der Juniper-Firewall wurden freigegeben. Das Snom versucht sich auch mit der Asterisk zu verbinden, scheitert allerdings dann mit einem (SIP/2.0 401 Unauthorized)
Hier der SIP Debug von der Asterisk:
Code:
<--- SIP read from UDP:217.92.X.X:2048 --->
REGISTER sip:217.7.X.X SIP/2.0
Via: SIP/2.0/UDP 192.168.X.X:2048;branch=z9hG4bK-h6qd5o8mwqv6;rport
From: <sip:[email protected]>;tag=iw8aorm687
To: <sip:[email protected]>
Call-ID: 3c26701fb6b0-brg4uaguuuig
CSeq: 54 REGISTER
Max-Forwards: 70
Contact: <sip:[email protected]:2048;line=eu9jgt4e>;reg-id=1;q=1.0;+sip.instance="<urn:uuid:a92bbc00-c7d9-4777-805f-000413383485>";audio;mobility="fixed";duplex="full";description="snom320";actor="principal";events="dialog";methods="INVITE,ACK,CANCEL,BYE,REFER,OPTIONS,NOTIFY,SUBSCRIBE,PRACK,MESSAGE,INFO"
User-Agent: snom320/8.4.32
Allow-Events: dialog
X-Real-IP: 192.168.X.X
Supported: path, gruu
Expires: 3600
Content-Length: 0
<------------->
--- (14 headers 0 lines) ---
Sending to 217.92.X.X:2048 (NAT)
<--- Transmitting (NAT) to 217.92.X.X:2048 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.X.X:2048;branch=z9hG4bK-h6qd5o8mwqv6;received=217.92.X.X;rport=2048
From: <sip:[email protected]>;tag=iw8aorm687
To: <sip:[email protected]>;tag=as6e10c13b
Call-ID: 3c26701fb6b0-brg4uaguuuig
CSeq: 54 REGISTER
Server: Asterisk PBX 11.2.1
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="230428b9"
Content-Length: 0
<------------>
Scheduling destruction of SIP dialog '3c26701fb6b0-brg4uaguuuig' in 32000 ms (Method: REGISTER)
<--- SIP read from UDP:217.92.X.X:2048 --->
REGISTER sip:217.7.X.X SIP/2.0
Via: SIP/2.0/UDP 192.168.X.X:2048;branch=z9hG4bK-h6qd5o8mwqv6;rport
From: <sip:[email protected]>;tag=iw8aorm687
To: <sip:[email protected]>
Call-ID: 3c26701fb6b0-brg4uaguuuig
CSeq: 54 REGISTER
Max-Forwards: 70
Contact: <sip:[email protected]:2048;line=eu9jgt4e>;reg-id=1;q=1.0;+sip.instance="<urn:uuid:a92bbc00-c7d9-4777-805f-000413383485>";audio;mobility="fixed";duplex="full";description="snom320";actor="principal";events="dialog";methods="INVITE,ACK,CANCEL,BYE,REFER,OPTIONS,NOTIFY,SUBSCRIBE,PRACK,MESSAGE,INFO"
User-Agent: snom320/8.4.32
Allow-Events: dialog
X-Real-IP: 192.168.X.X
Supported: path, gruu
Expires: 3600
Content-Length: 0
<------------->
--- (14 headers 0 lines) ---
Sending to 217.92.X.X:2048 (NAT)
<--- Transmitting (NAT) to 217.92.X.X:2048 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.X.X:2048;branch=z9hG4bK-h6qd5o8mwqv6;received=217.92.X.X;rport=2048
From: <sip:[email protected]>;tag=iw8aorm687
To: <sip:[email protected]>;tag=as6e10c13b
Call-ID: 3c26701fb6b0-brg4uaguuuig
CSeq: 54 REGISTER
Server: Asterisk PBX 11.2.1
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="230428b9"
Content-Length: 0
<------------>
Scheduling destruction of SIP dialog '3c26701fb6b0-brg4uaguuuig' in 32000 ms (Method: REGISTER)
<--- SIP read from UDP:217.92.X.X:2048 --->
REGISTER sip:217.7.X.X SIP/2.0
Via: SIP/2.0/UDP 192.168.X.X:2048;branch=z9hG4bK-h6qd5o8mwqv6;rport
From: <sip:[email protected]>;tag=iw8aorm687
To: <sip:[email protected]>
Call-ID: 3c26701fb6b0-brg4uaguuuig
CSeq: 54 REGISTER
Max-Forwards: 70
Contact: <sip:[email protected]:2048;line=eu9jgt4e>;reg-id=1;q=1.0;+sip.instance="<urn:uuid:a92bbc00-c7d9-4777-805f-000413383485>";audio;mobility="fixed";duplex="full";description="snom320";actor="principal";events="dialog";methods="INVITE,ACK,CANCEL,BYE,REFER,OPTIONS,NOTIFY,SUBSCRIBE,PRACK,MESSAGE,INFO"
User-Agent: snom320/8.4.32
Allow-Events: dialog
X-Real-IP: 192.168.X.X
Supported: path, gruu
Expires: 3600
Content-Length: 0
<------------->
--- (14 headers 0 lines) ---
Sending to 217.92.X.X:2048 (NAT)
<--- Transmitting (NAT) to 217.92.X.X:2048 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.X.X:2048;branch=z9hG4bK-h6qd5o8mwqv6;received=217.92.X.X;rport=2048
From: <sip:[email protected]>;tag=iw8aorm687
To: <sip:[email protected]>;tag=as6e10c13b
Call-ID: 3c26701fb6b0-brg4uaguuuig
CSeq: 54 REGISTER
Server: Asterisk PBX 11.2.1
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="230428b9"
Content-Length: 0
<------------>
Scheduling destruction of SIP dialog '3c26701fb6b0-brg4uaguuuig' in 32000 ms (Method: REGISTER)
<--- SIP read from UDP:217.92.X.X:2048 --->
REGISTER sip:217.7.X.X SIP/2.0
Via: SIP/2.0/UDP 192.168.X.X:2048;branch=z9hG4bK-h6qd5o8mwqv6;rport
From: <sip:[email protected]>;tag=iw8aorm687
To: <sip:[email protected]>
Call-ID: 3c26701fb6b0-brg4uaguuuig
CSeq: 54 REGISTER
Max-Forwards: 70
Contact: <sip:[email protected]:2048;line=eu9jgt4e>;reg-id=1;q=1.0;+sip.instance="<urn:uuid:a92bbc00-c7d9-4777-805f-000413383485>";audio;mobility="fixed";duplex="full";description="snom320";actor="principal";events="dialog";methods="INVITE,ACK,CANCEL,BYE,REFER,OPTIONS,NOTIFY,SUBSCRIBE,PRACK,MESSAGE,INFO"
User-Agent: snom320/8.4.32
Allow-Events: dialog
X-Real-IP: 192.168.X.X
Supported: path, gruu
Expires: 3600
Content-Length: 0
<------------->
--- (14 headers 0 lines) ---
Sending to 217.92.X.X:2048 (NAT)
<--- Transmitting (NAT) to 217.92.X.X:2048 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.X.X:2048;branch=z9hG4bK-h6qd5o8mwqv6;received=217.92.X.X;rport=2048
From: <sip:[email protected]>;tag=iw8aorm687
To: <sip:[email protected]>;tag=as6e10c13b
Call-ID: 3c26701fb6b0-brg4uaguuuig
CSeq: 54 REGISTER
Server: Asterisk PBX 11.2.1
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="230428b9"
Content-Length: 0
<------------>
Scheduling destruction of SIP dialog '3c26701fb6b0-brg4uaguuuig' in 32000 ms (Method: REGISTER)
<--- SIP read from UDP:217.92.X.X:2048 --->
REGISTER sip:217.7.X.X SIP/2.0
Via: SIP/2.0/UDP 192.168.X.X:2048;branch=z9hG4bK-h6qd5o8mwqv6;rport
From: <sip:[email protected]>;tag=iw8aorm687
To: <sip:[email protected]>
Call-ID: 3c26701fb6b0-brg4uaguuuig
CSeq: 54 REGISTER
Max-Forwards: 70
Contact: <sip:[email protected]:2048;line=eu9jgt4e>;reg-id=1;q=1.0;+sip.instance="<urn:uuid:a92bbc00-c7d9-4777-805f-000413383485>";audio;mobility="fixed";duplex="full";description="snom320";actor="principal";events="dialog";methods="INVITE,ACK,CANCEL,BYE,REFER,OPTIONS,NOTIFY,SUBSCRIBE,PRACK,MESSAGE,INFO"
User-Agent: snom320/8.4.32
Allow-Events: dialog
X-Real-IP: 192.168.X.X
Supported: path, gruu
Expires: 3600
Content-Length: 0
<------------->
--- (14 headers 0 lines) ---
Sending to 217.92.X.X:2048 (NAT)
<--- Transmitting (NAT) to 217.92.X.X:2048 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.X.X:2048;branch=z9hG4bK-h6qd5o8mwqv6;received=217.92.X.X;rport=2048
From: <sip:[email protected]>;tag=iw8aorm687
To: <sip:[email protected]>;tag=as6e10c13b
Call-ID: 3c26701fb6b0-brg4uaguuuig
CSeq: 54 REGISTER
Server: Asterisk PBX 11.2.1
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="230428b9"
Content-Length: 0
<------------>
Scheduling destruction of SIP dialog '3c26701fb6b0-brg4uaguuuig' in 32000 ms (Method: REGISTER)
<--- SIP read from UDP:217.92.X.X:2048 --->
REGISTER sip:217.7.X.X SIP/2.0
Via: SIP/2.0/UDP 192.168.X.X:2048;branch=z9hG4bK-h6qd5o8mwqv6;rport
From: <sip:[email protected]>;tag=iw8aorm687
To: <sip:[email protected]>
Call-ID: 3c26701fb6b0-brg4uaguuuig
CSeq: 54 REGISTER
Max-Forwards: 70
Contact: <sip:[email protected]:2048;line=eu9jgt4e>;reg-id=1;q=1.0;+sip.instance="<urn:uuid:a92bbc00-c7d9-4777-805f-000413383485>";audio;mobility="fixed";duplex="full";description="snom320";actor="principal";events="dialog";methods="INVITE,ACK,CANCEL,BYE,REFER,OPTIONS,NOTIFY,SUBSCRIBE,PRACK,MESSAGE,INFO"
User-Agent: snom320/8.4.32
Allow-Events: dialog
X-Real-IP: 192.168.X.X
Supported: path, gruu
Expires: 3600
Content-Length: 0
<------------->
--- (14 headers 0 lines) ---
Sending to 217.92.X.X:2048 (NAT)
<--- Transmitting (NAT) to 217.92.X.X:2048 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.X.X:2048;branch=z9hG4bK-h6qd5o8mwqv6;received=217.92.X.X;rport=2048
From: <sip:[email protected]>;tag=iw8aorm687
To: <sip:[email protected]>;tag=as6e10c13b
Call-ID: 3c26701fb6b0-brg4uaguuuig
CSeq: 54 REGISTER
Server: Asterisk PBX 11.2.1
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="230428b9"
Content-Length: 0
<------------>
Scheduling destruction of SIP dialog '3c26701fb6b0-brg4uaguuuig' in 32000 ms (Method: REGISTER)
Log vom Snom:
Code:
[5] 1/4/2013 22:28:10: SIP: transport error: 1000146 -> udp:217.7.X.X:5060
[5] 1/4/2013 22:28:10: SIP: final transport error: 1000146 -> udp:217.7.X.X:5060
[2] 1/4/2013 22:28:10: Transport Error: Pending packet 1000146: generating fake
[2] 1/4/2013 22:28:10: Registrar [email protected] timed out
Bei der SIP,conf bin ich mir nicht ganz sicher wie ich die konfigurieren soll (wegen NAT) usw, hab hier auch schon einige Konstellationen getestet, hier der aktuelle Ausschnitt:
Code:
port=5060 ; UDP-Port auf welchem SIP-Verbindungen angenommen werden
bindaddr=0.0.0.0 ; Auf allen IPs des Servers werden SIP-Verbindungen angenommen
disallow=all ; alle Codecs verbieten
allow=ulaw ; Codec ulaw (g711) erlauben
allow=alaw ; Codec alaw (g711) erlauben
allow=g729 ; Codec g729 erlauben
allow=gsm ; Codec gsm erlauben
call-limit=10 ; Call-Limit wie viele Anrufe gleichzeitg getätigt werden können
language=de ; Sprache
dtmfmode=rfc2833 ; Modus in welchem DTMF-Töne gesendet werden
allowsubscribe=yes ; wird benötigt für hints
notifyringing=yes ; wird benötigt für hints
notifyhold=yes ; wird benötigt für hints
limitonpeers=yes ; wird benötigt für hints
externhost=217.7.X.X ; Externer Hostname (wegen NAT)
localnet=192.168.X.X/255.255.192.0 ; alle lokalen Netzwerke
localnet=192.168.X.X/255.255.255.0 ; alle lokalen Netzwerke
Vielleicht kann mir hier jemand weiterhelfen, Ich bin der Meinung, dass es am NAT scheitert, weiß aber nicht genau wo.
Vielen Dank schon mal im Voraus
LG
Zuletzt bearbeitet: