Asterisk: 1.6.0.1, auf der FritzBox 7170 Firmware-Version: 29.04.87
Eingehende Telefonate funktionieren:
=> [sipgate] → [Modem(Kabel DE)] → [FritzBox (Asterisk)] → [PC (PhonerLite)]
Ausgehende Telefonate funktionieren leider nicht (SIP/2.0 503 Service Unavailable):
[PC (PhonerLite)] → [FritzBox (Asterisk)] → [Modem(Kabel DE)] → [sipgate] =>
peers
registry
sip.conf
extensions.conf
Log
Was mache ich eigentlich falsch?
Eingehende Telefonate funktionieren:
=> [sipgate] → [Modem(Kabel DE)] → [FritzBox (Asterisk)] → [PC (PhonerLite)]
Ausgehende Telefonate funktionieren leider nicht (SIP/2.0 503 Service Unavailable):
[PC (PhonerLite)] → [FritzBox (Asterisk)] → [Modem(Kabel DE)] → [sipgate] =>
peers
Code:
fritz*CLI> sip show peers
Name/username Host Dyn Nat ACL Port Status
30/30 192.168.178.20 D 5062 OK (3 ms)
MySIP-ID/MySIP-ID 217.10.79.9 N 5060 OK (70 ms)
registry
Code:
fritz*CLI> sip show registry
Host Username Refresh State Reg.Time
sipgate.de:5060 MySIP-ID 105 Registered Sat, 23 Jul 2011 00:46:16
sip.conf
Code:
[general]
context=default
bindport=5061
bindaddr=192.168.178.2
externhost=MyDynDns.dyndns.org
localnet=192.168.178.1/255.255.255.0
srvlookup=yes
language=de
register => MySIP-ID:[email protected]/MySIP-ID
[MySIP-ID]
context=prov_in
type=friend
secret=MyPASS
insecure=invite,port
username=MySIP-ID
defaultuser=MySIP-ID
fromuser=MySIP-ID
fromdomain=sipgate.de
host=sipgate.de
outboundproxy=proxy.live.sipgate.de
canreinvite=no
qualify=yes
disallow=all
allow=alaw
;dtmfmode=rfc2833
nat=yes
[30]
context=sip_in
callerid="Phone1" <30>
host=dynamic
qualify=yes
user=30
secret=MyPass30
nat=no
type=friend
disallow=all
allow=alaw
extensions.conf
Code:
[general]
static=yes
writeprotect=no
[default]
include => prov_out
[sip_in]
include => prov_out
[prov_in]
exten => MySIP-ID,1,Dial(SIP/30)
exten => MySIP-ID,2,Hangup
[prov_out]
exten => _0.,1,Dial(SIP/${EXTEN}@MySIP-ID,120)
xten => _0.,2,Hangup
Log
Code:
fritz*CLI>
<--- SIP read from UDP://217.10.68.147:5060 --->
SIP/2.0 407 Proxy Authentication Required
Via: SIP/2.0/UDP 77.20.xxx.xx:0;received=77.20.xxx.xx;branch=z9hG4bK3640c44d;rport=5061
From: "Phone1" <sip:[email protected]>;tag=as184871e6
To: <sip:[email protected]>;tag=8905033d07430b3434f1d8712ca047af.5d9e
Call-ID: [email protected]
CSeq: 103 INVITE
Proxy-Authenticate: Digest realm="sipgate.de", nonce="4e2a1ef9d444dae45b0a96dd2ffdc70fef254aae"
Content-Length: 0
<------------->
--- (8 headers 0 lines) ---
Transmitting (NAT) to 217.10.68.147:5060:
ACK sip:[email protected] SIP/2.0
Via: SIP/2.0/UDP 77.20.xxx.xx:0;branch=z9hG4bK3640c44d;rport
Max-Forwards: 70
From: "Phone1" <sip:[email protected]>;tag=as184871e6
To: <sip:[email protected]>;tag=8905033d07430b3434f1d8712ca047af.5d9e
Contact: <sip:[email protected]>
Call-ID: [email protected]
CSeq: 103 ACK
User-Agent: Asterisk PBX 1.6.0.1
Content-Length: 0
---
Audio is at 77.20.xxx.xx port 16524
Adding codec 0x8 (alaw) to SDP
Adding non-codec 0x1 (telephone-event) to SDP
Reliably Transmitting (NAT) to 217.10.68.147:5060:
INVITE sip:[email protected] SIP/2.0
Via: SIP/2.0/UDP 77.20.xxx.xx:0;branch=z9hG4bK04acc9a0;rport
Max-Forwards: 70
From: "Phone1" <sip:[email protected]>;tag=as184871e6
To: <sip:[email protected]>
Contact: <sip:[email protected]>
Call-ID: [email protected]
CSeq: 104 INVITE
User-Agent: Asterisk PBX 1.6.0.1
Proxy-Authorization: Digest username="MySIP-ID", realm="sipgate.de", algorithm=MD5, uri="sip:[email protected]", nonce="4e2a1ef9d444dae45b0a96dd2ffdc70fef254aae", response="b12c70b0a6a3c40cef04cb356fadb5cf"
Date: Sat, 23 Jul 2011 01:03:09 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces, timer
Content-Type: application/sdp
Content-Length: 263
v=0
o=root 1596889912 1596889914 IN IP4 77.20.xxx.xx
s=Asterisk PBX 1.6.0.1
c=IN IP4 77.20.xxx.xx
t=0 0
m=audio 16524 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=silenceSupp:off - - - -
a=ptime:20
a=sendrecv
---
fritz*CLI>
<--- SIP read from UDP://217.10.68.147:5060 --->
SIP/2.0 407 Proxy Authentication Required
Via: SIP/2.0/UDP 77.20.xxx.xx:0;received=77.20.xxx.xx;branch=z9hG4bK04acc9a0;rport=5061
From: "Phone1" <sip:[email protected]>;tag=as184871e6
To: <sip:[email protected]>;tag=8905033d07430b3434f1d8712ca047af.76e2
Call-ID: [email protected]
CSeq: 104 INVITE
Proxy-Authenticate: Digest realm="sipgate.de", nonce="4e2a1ef9d444dae45b0a96dd2ffdc70fef254aae"
Content-Length: 0
<------------->
--- (8 headers 0 lines) ---
Transmitting (NAT) to 217.10.68.147:5060:
ACK sip:[email protected] SIP/2.0
Via: SIP/2.0/UDP 77.20.xxx.xx:0;branch=z9hG4bK04acc9a0;rport
Max-Forwards: 70
From: "Phone1" <sip:[email protected]>;tag=as184871e6
To: <sip:[email protected]>;tag=8905033d07430b3434f1d8712ca047af.76e2
Contact: <sip:[email protected]>
Call-ID: [email protected]
CSeq: 104 ACK
User-Agent: Asterisk PBX 1.6.0.1
Content-Length: 0
---
Audio is at 77.20.xxx.xx port 16524
Adding codec 0x8 (alaw) to SDP
Adding non-codec 0x1 (telephone-event) to SDP
Reliably Transmitting (NAT) to 217.10.68.147:5060:
INVITE sip:[email protected] SIP/2.0
Via: SIP/2.0/UDP 77.20.xxx.xx:0;branch=z9hG4bK18fff3f1;rport
Max-Forwards: 70
From: "Phone1" <sip:[email protected]>;tag=as184871e6
To: <sip:[email protected]>
Contact: <sip:[email protected]>
Call-ID: [email protected]
CSeq: 105 INVITE
User-Agent: Asterisk PBX 1.6.0.1
Proxy-Authorization: Digest username="MySIP-ID", realm="sipgate.de", algorithm=MD5, uri="sip:[email protected]", nonce="4e2a1ef9d444dae45b0a96dd2ffdc70fef254aae", response="b12c70b0a6a3c40cef04cb356fadb5cf"
Date: Sat, 23 Jul 2011 01:03:09 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces, timer
Content-Type: application/sdp
Content-Length: 263
v=0
o=root 1596889912 1596889915 IN IP4 77.20.xxx.xx
s=Asterisk PBX 1.6.0.1
c=IN IP4 77.20.xxx.xx
t=0 0
m=audio 16524 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=silenceSupp:off - - - -
a=ptime:20
a=sendrecv
---
fritz*CLI>
<--- SIP read from UDP://217.10.68.147:5060 --->
SIP/2.0 407 Proxy Authentication Required
Via: SIP/2.0/UDP 77.20.xxx.xx:0;received=77.20.xxx.xx;branch=z9hG4bK18fff3f1;rport=5061
From: "Phone1" <sip:[email protected]>;tag=as184871e6
To: <sip:[email protected]>;tag=8905033d07430b3434f1d8712ca047af.b656
Call-ID: [email protected]
CSeq: 105 INVITE
Proxy-Authenticate: Digest realm="sipgate.de", nonce="4e2a1ef9d444dae45b0a96dd2ffdc70fef254aae"
Content-Length: 0
<------------->
--- (8 headers 0 lines) ---
Transmitting (NAT) to 217.10.68.147:5060:
ACK sip:[email protected] SIP/2.0
Via: SIP/2.0/UDP 77.20.xxx.xx:0;branch=z9hG4bK18fff3f1;rport
Max-Forwards: 70
From: "Phone1" <sip:[email protected]>;tag=as184871e6
To: <sip:[email protected]>;tag=8905033d07430b3434f1d8712ca047af.b656
Contact: <sip:[email protected]>
Call-ID: [email protected]
CSeq: 105 ACK
User-Agent: Asterisk PBX 1.6.0.1
Content-Length: 0
---
-- SIP/MySIP-ID-0061cb80 is circuit-busy
== Everyone is busy/congested at this time (1:0/1/0)
-- Auto fallthrough, channel 'SIP/30-0060ad30' status is 'CONGESTION'
<--- Reliably Transmitting (no NAT) to 192.168.178.20:5062 --->
SIP/2.0 503 Service Unavailable
Via: SIP/2.0/UDP 192.168.178.20:5062;branch=z9hG4bK000f483835b3e0118638005056c00001;received=77.20.xxx.xx;rport=5062
From: "PhonerLite" <sip:[email protected]>;tag=921921171
To: <sip:[email protected]>;tag=as73abe4e0
Call-ID: [email protected]
CSeq: 132 INVITE
User-Agent: Asterisk PBX 1.6.0.1
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces, timer
Contact: <sip:[email protected]:5061>
Content-Length: 0
X-Asterisk-HangupCause: Call Rejected
X-Asterisk-HangupCauseCode: 21
<------------>
fritz*CLI>
<--- SIP read from UDP://77.20.xxx.xx:5062 --->
ACK sip:[email protected] SIP/2.0
Via: SIP/2.0/UDP 192.168.178.20:5062;branch=z9hG4bK000f483835b3e0118638005056c00001;rport
From: "PhonerLite" <sip:[email protected]>;tag=921921171
To: <sip:[email protected]>;tag=as73abe4e0
Call-ID: [email protected]
CSeq: 132 ACK
Content-Length: 0
<------------->
--- (7 headers 0 lines) ---
Really destroying SIP dialog '[email protected]' Method: INVITE
Really destroying SIP dialog '[email protected]' Method: ACK
-- ast_get_srv: SRV lookup for '_sip._UDP.sipgate.de' mapped to host sipgate.de, port 5060
REGISTER 13 headers, 0 lines
Reliably Transmitting (no NAT) to 217.10.79.9:5060:
REGISTER sip:sipgate.de SIP/2.0
Via: SIP/2.0/UDP 77.20.xxx.xx:0;branch=z9hG4bK38d8aac5;rport
Max-Forwards: 70
From: <sip:[email protected]>;tag=as264e8472
To: <sip:[email protected]>
Call-ID: [email protected]
CSeq: 104 REGISTER
User-Agent: Asterisk PBX 1.6.0.1
Authorization: Digest username="MySIP-ID", realm="sipgate.de", algorithm=MD5, uri="sip:sipgate.de", nonce="4e2a1e91cd64738da4bbf859e9556e1dd9db2eaa", response="26ac189027f4073a1ab167a55feda986"
Expires: 120
Contact: <sip:[email protected]>
Event: registration
Content-Length: 0
---
fritz*CLI>
<--- SIP read from UDP://217.10.79.9:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 77.20.xxx.xx:0;branch=z9hG4bK38d8aac5;rport=5061
From: <sip:[email protected]>;tag=as264e8472
To: <sip:[email protected]>;tag=4fa8f7eb71cc68cca91a14abea886308.6c7b
Call-ID: [email protected]
CSeq: 104 REGISTER
Contact: <sip:[email protected]>;expires=120;received="sip:77.20.xxx.xx:5061"
Content-Length: 0
<------------->
--- (8 headers 0 lines) ---
Scheduling destruction of SIP dialog '[email protected]' in 32000 ms (Method: REGISTER)
Was mache ich eigentlich falsch?