- Mitglied seit
- 25 Mai 2006
- Beiträge
- 16
- Punkte für Reaktionen
- 0
- Punkte
- 0
Hallo,
vor einiger Zeit habe ich auf meiner Fritz Box den Asterisk installiert.
Die Anmeldung an dem externen Sip Server klappt einwandfrei.
Was leider nicht klappt, ist das Wählen einer Rufnummer.
Der Asterisk wählt immer nur die Rufnummern intern, also nie mit sip.1und1.de.
Dadurch kommt nie eine Verbindung nach außen zustande.
Ich habe hier mal einen Ausschnitt aus Sip debug:
Die Zeile “From” ist richtig, die Zeile “To” ist falsch.
Statt „XYZ.selfhost.eu” sollte “sip.1und1.de” stehen, da mein Provider 1und1 ist.
extensions.conf:
sip.conf:
kann mir jemand weiter helfen?:noidea:
vor einiger Zeit habe ich auf meiner Fritz Box den Asterisk installiert.
Die Anmeldung an dem externen Sip Server klappt einwandfrei.
Was leider nicht klappt, ist das Wählen einer Rufnummer.
Der Asterisk wählt immer nur die Rufnummern intern, also nie mit sip.1und1.de.
Dadurch kommt nie eine Verbindung nach außen zustande.
Ich habe hier mal einen Ausschnitt aus Sip debug:
PHP:
Reliably Transmitting (no NAT) to 192.168.1.30:43218:
SIP/2.0 407 Proxy Authentication Required
Via: SIP/2.0/UDP 192.168.1.30:43218;branch=z9hG4bK-d87543-7a4708222d096031-1--d87543-;rpo
rt;received=XX.XX.50.88
From: "32312"<sip:[email protected]:5066>;tag=4b4a4c74
To: "01234538580"<sip:[email protected]:5066>;tag=as60f6293
9
Call-ID: 9a03f940e327a655MTFlNzQwNjI2NzkzYzEyZTQ3YzUyMjZkMTZiNTJiODA.
CSeq: 1 INVITE
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Max-Forwards: 70
Contact: <sip:[email protected]:5066>
Proxy-Authenticate: Digest realm="asterisk", nonce="0fa66992"
Content-Length: 0
---
Scheduling destruction of call '9a03f940e327a655MTFlNzQwNjI2NzkzYzEyZTQ3YzUyMjZkMTZiNTJiODA.' in 15000 ms Scheduling destruction of call '9a03f940e327a655MTFlNzQwNjI2NzkzYzEyZTQ3YzUyMjZkMTZiNTJiODA.' in 15000 ms
Found user '32312'
Found user '32312'
Retransmitting #1 (no NAT) to 192.168.1.30:43218:
SIP/2.0 407 Proxy Authentication Required
Via: SIP/2.0/UDP 192.168.1.30:43218;branch=z9hG4bK-d87543-7a4708222d096031-1--d87543-;rpo
rt;received=XX.XX.50.88
From: "32312"<sip:[email protected]:5066>;tag=4b4a4c74
To: "01234538580"<sip:[email protected]:5066>;tag=as60f6293
9
Call-ID: 9a03f940e327a655MTFlNzQwNjI2NzkzYzEyZTQ3YzUyMjZkMTZiNTJiODA.
CSeq: 1 INVITE
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Max-Forwards: 70
Contact: <sip:[email protected]:5066>
Proxy-Authenticate: Digest realm="asterisk", nonce="0fa66992"
Content-Length: 0
---
Retransmitting #1 (no NAT) to 192.168.1.30:43218:
SIP/2.0 407 Proxy Authentication Required
Via: SIP/2.0/UDP 192.168.1.30:43218;branch=z9hG4bK-d87543-7a4708222d096031-1--d87543-;rpo
rt;received=XX.XX.50.88
From: "32312"<sip:[email protected]:5066>;tag=4b4a4c74
To: "01234538580"<sip:[email protected]:5066>;tag=as60f6293
9
Call-ID: 9a03f940e327a655MTFlNzQwNjI2NzkzYzEyZTQ3YzUyMjZkMTZiNTJiODA.
CSeq: 1 INVITE
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Max-Forwards: 70
Contact: <sip:[email protected]:5066>
Proxy-Authenticate: Digest realm="asterisk", nonce="0fa66992"
Content-Length: 0
Die Zeile “From” ist richtig, die Zeile “To” ist falsch.
Statt „XYZ.selfhost.eu” sollte “sip.1und1.de” stehen, da mein Provider 1und1 ist.
extensions.conf:
PHP:
[general]
static=yes
writeprotect=no
[globals]
[default]
include => 1und1_32312_in
include => 32312
[32312]
exten => _X.,1,Dial(SIP/${EXTEN}@1und1_32312,60)
exten => _X.,2,Congestion
exten => _X.,3,Busy
exten => _X.,4,Hangup
[1und1_32312_in]
exten => 491234532312,1,Dial(SIP/32312,60)
sip.conf:
PHP:
[general]
context=default
bindport=5066
bindaddr=0.0.0.0
srvlookup=yes
language=de
localnet=192.168.178.2/255.255.255.0
externhost=XYZ.selfhost.eu
register => 491234532312:[email protected]/491234532312
[1und1_32312]
type=friend
username=491234532312
fromuser=491234532312
secret=XXX
host=sip.1und1.de
fromdomain=1und1.de
insecure=very
canreinvite=no
allow=all
nat=yes
context=1und1_32312_in
[32312]
type=friend
context=32312
username=32312
secret=XXX
host=dynamic
canreinvite=no
dtfmode=rfc2833
allow=all
kann mir jemand weiter helfen?:noidea:
Zuletzt bearbeitet: