Hallo zusammen,
trotz unzähliger Artikel im Netz zur Konfiguration einer Fritzbox 7390 als Trunk an einer FreePBX-Anlage kann ich nach wie vor keine eingehenden Anrufe mit der FreePBX verarbeiten.
Folgendes Setup: Ich habe ein Fritz-IP-Telefon auf einer Fritzbox angelegt, das eine physische Leitung an der Box via SIP weiterleitet über Nebenstelle 621 (eingehend und ausgehend). Die 621 ist nun als Trunk auf der FreePBX 2.11 (Asterisk 11.3) konfiguriert, FreePBX meldet auch eine erfolgreiche Registrierung. Ausgehende Anrufe funktionieren tadellos, bei eingehenden meldet die Fritzbox den Fehler 403 Unauthorized, im Asterisk CLI findet sich ein 401 Forbidden. Was mache ich falsch? Hier die Konfiguration:
Peer:
host=192.168.178.1
username=621
secret=***Pwd***
type=peer
qualify=yes
dtmfmode=rfc2833
fromdomain=fritz.box
fromuser=621
User Context: 621
User Details:
secret=***Pwd***
type=user
context=from-trunk
insecure=very
host=192.168.178.1
fromuser=621
fromdomain=fritz.box
username=621
Sporadisch hat es schon einmal funktioniert, aber nicht reproduzierbar. Vielen Dank im voraus.
Anbei ein Auszug aus der Asterisk CLI:
trotz unzähliger Artikel im Netz zur Konfiguration einer Fritzbox 7390 als Trunk an einer FreePBX-Anlage kann ich nach wie vor keine eingehenden Anrufe mit der FreePBX verarbeiten.
Folgendes Setup: Ich habe ein Fritz-IP-Telefon auf einer Fritzbox angelegt, das eine physische Leitung an der Box via SIP weiterleitet über Nebenstelle 621 (eingehend und ausgehend). Die 621 ist nun als Trunk auf der FreePBX 2.11 (Asterisk 11.3) konfiguriert, FreePBX meldet auch eine erfolgreiche Registrierung. Ausgehende Anrufe funktionieren tadellos, bei eingehenden meldet die Fritzbox den Fehler 403 Unauthorized, im Asterisk CLI findet sich ein 401 Forbidden. Was mache ich falsch? Hier die Konfiguration:
Peer:
host=192.168.178.1
username=621
secret=***Pwd***
type=peer
qualify=yes
dtmfmode=rfc2833
fromdomain=fritz.box
fromuser=621
User Context: 621
User Details:
secret=***Pwd***
type=user
context=from-trunk
insecure=very
host=192.168.178.1
fromuser=621
fromdomain=fritz.box
username=621
Sporadisch hat es schon einmal funktioniert, aber nicht reproduzierbar. Vielen Dank im voraus.
Anbei ein Auszug aus der Asterisk CLI:
Code:
<--- SIP read from UDP:192.168.178.1:5060 --->
INVITE sip:[email protected]:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.178.1:5060;branch=z9hG4bKAFDFBD96770ECBB3
From: <sip:[email protected]>;tag=C761BCAF093F1FB8
To: <sip:[email protected]:5060>
Call-ID: [email protected]
CSeq: 133 INVITE
Contact: <sip:[email protected]>
Max-Forwards: 70
Expires: 120
User-Agent: AVM FRITZ!Box Fon WLAN 7390 84.05.55 (Apr 18 2013)
Supported: 100rel,replaces,timer
Allow-Events: telephone-event,refer
Allow: INVITE,ACK,OPTIONS,CANCEL,BYE,UPDATE,PRACK,INFO,SUBSCRIBE,NOTIFY,REFER,MESSAGE,PUBLISH
Content-Type: application/sdp
Accept: application/sdp, multipart/mixed
Accept-Encoding: identity
Content-Length: 361
v=0
o=user 12762930 12762930 IN IP4 192.168.178.1
s=call
c=IN IP4 192.168.178.1
t=0 0
m=audio 7086 RTP/AVP 8 0 2 102 100 99 97 101
a=sendrecv
a=rtpmap:2 G726-32/8000
a=rtpmap:102 G726-32/8000
a=rtpmap:100 G726-40/8000
a=rtpmap:99 G726-24/8000
a=rtpmap:97 iLBC/8000
a=fmtp:97 mode=30
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=rtcp:7087
<------------->
--- (17 headers 16 lines) ---
Sending to 192.168.178.1:5060 (no NAT)
Using INVITE request as basis request - [email protected]
Found peer '20' for 'MeineTestRufNr' from 192.168.178.1:5060
<--- Reliably Transmitting (no NAT) to 192.168.178.1:5060 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.178.1:5060;branch=z9hG4bKAFDFBD96770ECBB3;received=192.168.178.1
From: <sip:[email protected]>;tag=C761BCAF093F1FB8
To: <sip:[email protected]:5060>;tag=as35c5d9fb
Call-ID: [email protected]
CSeq: 133 INVITE
Server: FPBX2.11.0rc1(11.3.0)
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="1ce1eade"
Content-Length: 0
<------------>
Scheduling destruction of SIP dialog '[email protected]' in 6400 ms (Method: INVITE)
<--- SIP read from UDP:192.168.178.1:5060 --->
ACK sip:[email protected]:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.178.1:5060;branch=z9hG4bKAFDFBD96770ECBB3
From: <sip:[email protected]>;tag=C761BCAF093F1FB8
To: <sip:[email protected]:5060>;tag=as35c5d9fb
Call-ID: [email protected]
CSeq: 133 ACK
User-Agent: AVM FRITZ!Box Fon WLAN 7390 84.05.55 (Apr 18 2013)
Content-Length: 0
<------------->
--- (8 headers 0 lines) ---
<--- SIP read from UDP:192.168.178.1:5060 --->
INVITE sip:[email protected]:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.178.1:5060;branch=z9hG4bK1700D6354367F4CB
From: <sip:[email protected]>;tag=C761BCAF093F1FB8
To: <sip:[email protected]:5060>
Call-ID: [email protected]
CSeq: 134 INVITE
Contact: <sip:[email protected]>
Authorization: Digest username="621", realm="asterisk", nonce="1ce1eade", uri="sip:[email protected]:5060", response="73d5ce61e5c72a49c1616ba42d0e2ece", algorithm=MD5
Max-Forwards: 70
Expires: 120
User-Agent: AVM FRITZ!Box Fon WLAN 7390 84.05.55 (Apr 18 2013)
Supported: 100rel,replaces,timer
Allow-Events: telephone-event,refer
Allow: INVITE,ACK,OPTIONS,CANCEL,BYE,UPDATE,PRACK,INFO,SUBSCRIBE,NOTIFY,REFER,MESSAGE,PUBLISH
Content-Type: application/sdp
Accept: application/sdp, multipart/mixed
Accept-Encoding: identity
Content-Length: 361
v=0
o=user 12762930 12762930 IN IP4 192.168.178.1
s=call
c=IN IP4 192.168.178.1
t=0 0
m=audio 7086 RTP/AVP 8 0 2 102 100 99 97 101
a=sendrecv
a=rtpmap:2 G726-32/8000
a=rtpmap:102 G726-32/8000
a=rtpmap:100 G726-40/8000
a=rtpmap:99 G726-24/8000
a=rtpmap:97 iLBC/8000
a=fmtp:97 mode=30
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=rtcp:7087
<------------->
--- (18 headers 16 lines) ---
Sending to 192.168.178.1:5060 (no NAT)
Using INVITE request as basis request - [email protected]
Found peer '20' for 'MeineTestRufNr' from 192.168.178.1:5060
<--- Reliably Transmitting (no NAT) to 192.168.178.1:5060 --->
SIP/2.0 403 Forbidden
Via: SIP/2.0/UDP 192.168.178.1:5060;branch=z9hG4bK1700D6354367F4CB;received=192.168.178.1
From: <sip:sip:[email protected]>;tag=C761BCAF093F1FB8
To: <sip:[email protected]:5060>;tag=as35c5d9fb
Call-ID: [email protected]
CSeq: 134 INVITE
Server: FPBX2.11.0rc1(11.3.0)
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Length: 0
<------------>
Scheduling destruction of SIP dialog '[email protected]' in 6400 ms (Method: INVITE)
<--- SIP read from UDP:192.168.178.1:5060 --->
ACK sip:[email protected]:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.178.1:5060;branch=z9hG4bK1700D6354367F4CB
From: <sip:[email protected]>;tag=C761BCAF093F1FB8
To: <sip:[email protected]:5060>;tag=as35c5d9fb
Call-ID: [email protected]
CSeq: 134 ACK
User-Agent: AVM FRITZ!Box Fon WLAN 7390 84.05.55 (Apr 18 2013)
Content-Length: 0
<------------->
--- (8 headers 0 lines) ---
Really destroying SIP dialog '125dc941425b66ee5d4169c210474391@[::1]' Method: REGISTER
Really destroying SIP dialog '[email protected]' Method: ACK
Really destroying SIP dialog '62013d2477b861736729801367e14a0f@[::1]' Method: REGISTER
Zuletzt bearbeitet von einem Moderator: