Asterisk und 1und1 VoIP

CLauinger

Neuer User
Mitglied seit
27 Jan 2005
Beiträge
94
Punkte für Reaktionen
0
Punkte
0
Hallo,

ich habe mein "*" nach Anleitungen hier aus dem Forum für 1und1 SIP konfiguriert. "sip show registry" zeigt ich bin verbunden (Registered)
Trotzdem kann ich keine Telefonate über 1und1 führen:

Apr 20 14:52:58 NOTICE[16965]: Peer '1und1' is now REACHABLE!
Apr 20 14:53:42 WARNING[16965]: Maximum retries exceeded on call [email protected] for seqno 103 (Non-critical Request)
Apr 20 14:54:01 WARNING[16965]: Maximum retries exceeded on call [email protected] for seqno 102 (Critical Request)

cat sip.conf

Code:
[general]
port=5060
bindaddr=0.0.0.0
srvlookup=yes
context=default
disallow=all
allow=alaw
allow=ulaw
allow=g729
allow=gsm
allow=slinear
canreinvite=no
tos=0x18
insecure=very
nat=yes
dtmfmode=info
maxexpirey=3600
defaultexpirey=600
language=de
localnet = 198.168.1.0/255.255.255.0
externip = my.homeip.net
register => 49XXX:[email protected]/49XXX

[1und1]
type=friend
nat=no
username=49XXX
secret=open4u2004
host=sip.1und1.de
fromuser=49XXX
fromdomain=sip.1und1.de
context=default
canreinvite=no
qualify=yes
disallow=all
allow=alaw
allow=ulaw
allow=g729
allow=gsm
allow=slinear
insecure=very
dtmfmode=info
tos=0x18

cat extensions.conf

Code:
[ausgehend-voip-1und1]
exten => _9.,1,SetCallerID,49XXX
exten => _9.,2,Dial(SIP/${EXTEN:1}@1und1,${TIMEOUT-LONG})
exten => _9.,3,Congestion
exten => _9.,4,Busy
exten => _9.,5,Hangup

Am meinem Router hab ich die Ports aus der rtp.conf und den Port 5060 auf die "*" weitergeleitet.

Wo liegt mein Fehler ?

Danke und Gruss

Christian
 
Ich würde ja in der [1und1]-Sektion das nat=no mal rausnehmen.
 
Hat leider keine Besserung gebracht :(
Weder nat=no rausnehmen noch nat=yes setzen.
 
Hab mir jetzt noch nen Sipgate-Account zum Testen geschaltet, der tut einwandfrei. Eingehend wie ausgehend :)
Wenn ich den 1und1 Account so konfiguriere wie den Sipgate, tut er aber immer noch nicht :(
sip show peers sagt beim 1und1 Account "UNREACHABLE".
Liegt das an denen oder an meiner Konfiguration ?
 
Wenn die Quälekom dazu überredest, mich ganz schnell zu =2 rüberswitchen zu lassen, kann ich's gerne mal ausprobieren. ;)
 
nat=no ist erstmal richtig, yes schadet aber meist nicht.

Hat Du eine extension für eingehende Rufe? Ich würde das nicht über default machen sondern einen context, z.B. from1und1 dafür nehmen.

Zum Vergleich nochmal mein 1und1 peer
Code:
[1und1]
type=peer
username=4951019xxxx
fromuser=4951019xxxx
secret=xxxxxx
host=sip.1und1.de
context=from1und1
fromdomain=sip.1und1.de
auth=md5,plaintext
qualify=yes
canreinvite=no
nat=no
insecure=very

jo
 
ja, eingehende context(s) habe ich, habs auch mal geändert.
ich hab mal deine einstellung fürs 1und1 peer übernommen.

type hatte ich friend, hab ich in peer geändert.
was mich wundert, sip show registry zeigt "registered"
sip show peers zeit bei 1und1 "UNREACHABLE".
verstehe das nicht ganz.

kann das an meinem port-forwarding liegen ? welche ports hast du auf "*" weitergeleitet ?
 
weitergeleitet sind die ports, die in der rtp.conf bei * eingetragen sind , aktuell 10000 - 100100 und der SIP Port (bei mir 5050, Standard 5060)
Wenn Du nur einen Provider hast reichen auch weniger. Ich kann nicht genau sagen wieviel benötigt werden , da * auch Ports reserviert, mit 10 müsstest Du aber erstmal klarkommen. Wenn Ports fehlen sollte * das eigentlich als Fehlermeldung beim starten anzeigen.

jo
 
Setze mal das qualify auf 'no' und maxexpirey und defaultexpirey auf jeweils 3600.
 
Jo, das mit dem Portforwarding hab ich auch so verstanden und ist so umgesetzt. Denke mal das es stimmt, Sipgate tut ja.

Irgendwas an den 1und1 Settings stimmt noch nicht :(
cat sip.conf - meine aktuelle mit Anpassungen aus dem Thread
Vielleicht hat noch jemand nen Einfall - DANKE !!!

Code:
[general]
port=5060
bindaddr=0.0.0.0
srvlookup=yes
context=default
disallow=all
allow=alaw
allow=ulaw
allow=g729
allow=gsm
allow=slinear
canreinvite=no
tos=0x18
insecure=very
nat=yes
dtmfmode=info
maxexpirey=3600
defaultexpirey=600
language=de
localnet = 198.168.1.0/255.255.255.0
externip = my.home.ip
register => 49XXX:[email protected]/49XXX
register => XXX:[email protected]/XXX

[1und1]
type=peer
username=49XXX
secret=YYY
host=sip.1und1.de
fromuser=49XXX
fromdomain=sip.1und1.de
context=eingehend-voip-1und1
auth=md5,plaintext
qualify=no
canreinvite=no
nat=no
insecure=very
maxexpirey=3600
defaultexpirey=3600
 
dies ist überflüssig:

auth=md5,plaintext

und maxexpirey und defaultexpirey setzt du unter [general]
 
jap, hab ich gemacht, leider immer noch nix.
bei sipgate kommt sofort ein wählton, bei 1und1 bleibt das telefon stumm und irgendwann kommt dann im display "hörer auflegen".
 
Melde dich mal mit 'asterisk -dddvvvr' an und poste mal den Konsoloutput - dann sehen wir möglicherweise wo es hängt!
 
Code:
Verbosity is at least 3
Core debug is at least 3
    -- Executing Dial("mISDN/1/230", "SIP/01799155876@1und1||") in new stack
    -- Called 01799155876@1und1

mehr steht da leider nicht :(
 
exten => _9.,2,Dial(SIP/${EXTEN:1}@1und1,${TIMEOUT-LONG})

wo wird die Variable Timeout-Long gesetzt?

geht dies:

exten => _9.,2,Dial(SIP/${EXTEN:1}@1und1,,)
 
Timeout-Long=90 hab ich ganz oben stehen in der extensions.conf.
habs auch schon ohne timeout probiert ("SIP/01799155876@1und1||"), alles ohne erfolg ...
 
Hab mal mit sip debug gespielt, hier mein Output, vielleicht sieht einer der Spezialisten was nicht stimmt.
Code:
We're at 84.163.155.133 port 9814
Answering/Requesting with root capability 0x8 (alaw)
Answering with preferred capability 0x4 (ulaw)
Answering with preferred capability 0x2 (gsm)
12 headers, 10 lines
Reliably Transmitting:
INVITE sip:[email protected] SIP/2.0
Via: SIP/2.0/UDP 84.163.155.133:5060;branch=z9hG4bK3f1aa310
From: "230" <sip:[email protected]>;tag=as2b17cb4c
To: <sip:[email protected]>
Contact: <sip:[email protected]>
Call-ID: [email][email protected][/email]
CSeq: 102 INVITE
User-Agent: Asterisk PBX
Date: Tue, 26 Apr 2005 10:28:35 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER
Content-Type: application/sdp
Content-Length: 210

v=0
o=root 12758 12758 IN IP4 84.163.155.133
s=session
c=IN IP4 84.163.155.133
t=0 0
m=audio 9814 RTP/AVP 8 0 3
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:3 GSM/8000
a=silenceSupp:off - - - -
 (no NAT) to 212.227.15.197:5060
conop01*CLI>

Sip read:
SIP/2.0 407 Proxy Authentication Required
Via: SIP/2.0/UDP 84.163.155.133:5060;received=192.168.1.2;branch=z9hG4bK3f1aa310
From: "230" <sip:[email protected]>;tag=as2b17cb4c
To: <sip:[email protected]>;tag=b27e1a1d33761e85846fc98f5f3a7e58.703c
Call-ID: [email][email protected][/email]
CSeq: 102 INVITE
Proxy-Authenticate: Digest realm="1und1.de", nonce="426e18f0220877270fa7f0e590745193769b7a55"
Server: Sip EXpress router (0.8.14 (i386/linux))
Content-Length: 0


9 headers, 0 lines
Transmitting:
ACK sip:[email protected] SIP/2.0
Via: SIP/2.0/UDP 84.163.155.133:5060;branch=z9hG4bK3f1aa310
From: "230" <sip:[email protected]>;tag=as2b17cb4c
To: <sip:[email protected]>;tag=b27e1a1d33761e85846fc98f5f3a7e58.703c
Contact: <sip:[email protected]>
Call-ID: [email][email protected][/email]
Call-ID: [email][email protected][/email]
CSeq: 102 ACK
User-Agent: Asterisk PBX
Content-Length: 0

 (no NAT) to 212.227.15.197:5060
We're at 84.163.155.133 port 9814
Answering/Requesting with root capability 0x8 (alaw)
Answering with preferred capability 0x4 (ulaw)
Answering with preferred capability 0x2 (gsm)
Reliably Transmitting:
INVITE sip:[email protected] SIP/2.0
Via: SIP/2.0/UDP 84.163.155.133:5060;branch=z9hG4bK380b40f9
From: "230" <sip:[email protected]>;tag=as2b17cb4c
To: <sip:[email protected]>
Contact: <sip:[email protected]>
Call-ID: [email][email protected][/email]
CSeq: 103 INVITE
User-Agent: Asterisk PBX
Proxy-Authorization: Digest username="497216276695", realm="1und1.de", algorithm=MD5, uri="sip:[email protected]", nonce="426e18f0220877270fa7f0e590745193769b7a55", response="0658bc0708e29dbc08cab9d1ea94df42", opaque=""
Date: Tue, 26 Apr 2005 10:28:35 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER
Content-Type: application/sdp
Content-Length: 210

v=0
o=root 12758 12759 IN IP4 84.163.155.133
s=session
c=IN IP4 84.163.155.133
t=0 0
m=audio 9814 RTP/AVP 8 0 3
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:3 GSM/8000
a=silenceSupp:off - - - -
 (no NAT) to 212.227.15.197:5060
conop01*CLI>

Sip read:
SIP/2.0 100 trying -- your call is important to us
Via: SIP/2.0/UDP 84.163.155.133:5060;received=192.168.1.2;branch=z9hG4bK380b40f9
From: "230" <sip:[email protected]>;tag=as2b17cb4c
To: <sip:[email protected]>
Call-ID: [email][email protected][/email]
CSeq: 103 INVITE
Server: Sip EXpress router (0.8.14 (i386/linux))
Content-Length: 0


8 headers, 0 lines
 
Ich brüte immer noch über meinem 1und1 Problem :(
Nix tut sich :(

Es geht einfach kein Anruf raus.

Hier mal ein neuer Auszug aus "sip debug"
Code:
conop01:~# asterisk -r
Asterisk 1.0.7-BRIstuffed-0.2.0-RC7k, Copyright (C) 1999-2004 Digium.
Written by Mark Spencer <[email protected]>
=========================================================================
Connected to Asterisk 1.0.7-BRIstuffed-0.2.0-RC7k currently running on conop01 (pid = 10908)
Verbosity is at least 99
Core debug is at least 3
conop01*CLI> sip debug
SIP Debugging Enabled
    -- Executing SetCallerID("mISDN/1/230-1", "497216276695") in new stack
    -- Executing SetCIDName("mISDN/1/230-1", "497216276695") in new stack
    -- Executing Dial("mISDN/1/230-1", "SIP/01799155876@1und1|90|trg") in new stack
We're at 84.163.143.186 port 10006
Answering/Requesting with root capability 0x8 (alaw)
Answering with preferred capability 0x4 (ulaw)
Answering with preferred capability 0x400 (ilbc)
Answering with preferred capability 0x2 (gsm)
Answering with preferred capability 0x100 (g729)
Answering with preferred capability 0x40 (slin)
12 headers, 13 lines
Reliably Transmitting:
INVITE sip:[email protected] SIP/2.0
Via: SIP/2.0/UDP 84.163.143.186:5060;branch=z9hG4bK66f77c24;rport
From: "497216276695" <sip:[email protected]>;tag=as7b889207
To: <sip:[email protected]>
Contact: <sip:[email protected]>
Call-ID: [email][email protected][/email]
CSeq: 102 INVITE
User-Agent: Asterisk PBX
Date: Mon, 30 May 2005 15:29:22 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER
Content-Type: application/sdp
Content-Length: 288

v=0
o=root 10909 10909 IN IP4 84.163.143.186
s=session
c=IN IP4 84.163.143.186
t=0 0
m=audio 10006 RTP/AVP 8 0 97 3 18 10
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:97 iLBC/8000
a=rtpmap:3 GSM/8000
a=rtpmap:18 G729/8000
a=rtpmap:10 L16/8000
a=silenceSupp:off - - - -
 (NAT) to 212.227.15.197:5060
    -- Called 01799155876@1und1
conop01*CLI>

Sip read:
SIP/2.0 407 Proxy Authentication Required
Via: SIP/2.0/UDP 192.168.1.2:5060;branch=z9hG4bK66f77c24;rport=1172
From: "497216276695" <sip:[email protected]>;tag=as7b889207
To: <sip:[email protected]>;tag=b27e1a1d33761e85846fc98f5f3a7e58.1a7e
Call-ID: [email][email protected][/email]
CSeq: 102 INVITE
Proxy-Authenticate: Digest realm="1und1.de", nonce="429b327e5f5b532aebb357daf9985fcd101b81a9"
Server: Sip EXpress router (0.8.14 (i386/linux))
Content-Length: 0
conop01*CLI>

9 headers, 0 lines
Transmitting:
ACK sip:[email protected] SIP/2.0
Via: SIP/2.0/UDP 84.163.143.186:5060;branch=z9hG4bK66f77c24;rport
From: "497216276695" <sip:[email protected]>;tag=as7b889207
To: <sip:[email protected]>;tag=b27e1a1d33761e85846fc98f5f3a7e58.1a7e
Contact: <sip:[email protected]>
Call-ID: [email][email protected][/email]
CSeq: 102 ACK
User-Agent: Asterisk PBX
Content-Length: 0

 (NAT) to 212.227.15.197:5060
We're at 84.163.143.186 port 10006
Answering/Requesting with root capability 0x8 (alaw)
Answering with preferred capability 0x4 (ulaw)
Answering with preferred capability 0x400 (ilbc)
Answering with preferred capability 0x2 (gsm)
Answering with preferred capability 0x100 (g729)
Answering with preferred capability 0x40 (slin)
Reliably Transmitting:
INVITE sip:[email protected] SIP/2.0
Via: SIP/2.0/UDP 84.163.143.186:5060;branch=z9hG4bK40d08ce4;rport
From: "497216276695" <sip:[email protected]>;tag=as7b889207
To: <sip:[email protected]>
Contact: <sip:[email protected]>
Call-ID: [email][email protected][/email]
CSeq: 103 INVITE
User-Agent: Asterisk PBX
Proxy-Authorization: Digest username="497216276695", realm="1und1.de", algorithm=MD5, uri="sip:[email protected]", nonce="429b327e5f5b532aebb357daf9985fcd101b81a9", response="2f9de7d88e3f444bce4aabc2afbf653f", opaque=""
Date: Mon, 30 May 2005 15:29:22 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER
Content-Type: application/sdp
Content-Length: 288

v=0
o=root 10909 10910 IN IP4 84.163.143.186
s=session
c=IN IP4 84.163.143.186
t=0 0
m=audio 10006 RTP/AVP 8 0 97 3 18 10
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:97 iLBC/8000
a=rtpmap:3 GSM/8000
a=rtpmap:18 G729/8000
a=rtpmap:10 L16/8000
a=silenceSupp:off - - - -
 (NAT) to 212.227.15.197:5060
conop01*CLI>

Sip read:
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 192.168.1.2:5060;branch=z9hG4bK40d08ce4;rport=1172
From: "497216276695" <sip:[email protected]>;tag=as7b889207
To: <sip:[email protected]>
Call-ID: [email][email protected][/email]
CSeq: 103 INVITE
Server: Sip EXpress router (0.8.14 (i386/linux))
Content-Length: 0


8 headers, 0 lines
conop01*CLI>

Sip read:
SIP/2.0 408 Request Timeout
Via: SIP/2.0/UDP 192.168.1.2:5060;branch=z9hG4bK40d08ce4;rport=1172
From: "497216276695" <sip:[email protected]>;tag=as7b889207
To: <sip:[email protected]>;tag=a6a1c5f60faecf035a1ae5b6e96e979a-b721
Call-ID: [email][email protected][/email]
CSeq: 103 INVITE
Server: Sip EXpress router (0.8.14 (i386/linux))
Content-Length: 0


8 headers, 0 lines
    -- Got SIP response 408 "Request Timeout" back from 212.227.15.197
Transmitting:
ACK sip:[email protected] SIP/2.0
Via: SIP/2.0/UDP 84.163.143.186:5060;branch=z9hG4bK40d08ce4;rport
From: "497216276695" <sip:[email protected]>;tag=as7b889207
To: <sip:[email protected]>;tag=a6a1c5f60faecf035a1ae5b6e96e979a-b721
Contact: <sip:[email protected]>
Call-ID: [email][email protected][/email]
CSeq: 103 ACK
User-Agent: Asterisk PBX
Content-Length: 0

 (NAT) to 212.227.15.197:5060
  == No one is available to answer at this time
    -- Executing Congestion("mISDN/1/230-1", "") in new stack
Destroying call '[email protected]'
conop01*CLI>

Sip read:
SIP/2.0 408 Request Timeout
Via: SIP/2.0/UDP 192.168.1.2:5060;branch=z9hG4bK40d08ce4;rport=1172
From: "497216276695" <sip:[email protected]>;tag=as7b889207
To: <sip:[email protected]>;tag=a6a1c5f60faecf035a1ae5b6e96e979a-b721
Call-ID: [email][email protected][/email]
CSeq: 103 INVITE
Server: Sip EXpress router (0.8.14 (i386/linux))
Content-Length: 0


8 headers, 0 lines
Destroying call '[email protected]'
conop01*CLI>

Sip read:
SIP/2.0 408 Request Timeout
Via: SIP/2.0/UDP 192.168.1.2:5060;branch=z9hG4bK40d08ce4;rport=1172
From: "497216276695" <sip:[email protected]>;tag=as7b889207
To: <sip:[email protected]>;tag=a6a1c5f60faecf035a1ae5b6e96e979a-b721
Call-ID: [email][email protected][/email]
CSeq: 103 INVITE
Server: Sip EXpress router (0.8.14 (i386/linux))
Content-Length: 0


8 headers, 0 lines
Destroying call '[email protected]'
conop01*CLI> sip ndebug

Sip read:
SIP/2.0 408 Request Timeout
Via: SIP/2.0/UDP 192.168.1.2:5060;branch=z9hG4bK40d08ce4;rport=1172
From: "497216276695" <sip:[email protected]>;tag=as7b889207
To: <sip:[email protected]>;tag=a6a1c5f60faecf035a1ae5b6e96e979a-b721
Call-ID: [email][email protected][/email]
CSeq: 103 INVITE
Server: Sip EXpress router (0.8.14 (i386/linux))
Content-Length: 0


8 headers, 0 lines
Destroying call '[email protected]'
conop01*CLI> sip no debug

cat sip.conf
Code:
[general]
port=5060
bindaddr=0.0.0.0
srvlookup=yes
context=default
disallow=all
allow=ulaw
allow=alaw
allow=ilbc
allow=gsm
allow=g729
allow=slinear
canreinvite=no
tos=0x18
insecure=very
nat=yes
dtmfmode=info
maxexpirey=3600
defaultexpirey=600
localnet = 198.168.1.0/255.255.255.0
externip = my.homelinux.net
register => 49721XXX:[email protected]/49721XXX

[1und1]
type=friend
username=49721XXX
secret=YYY
host=sip.1und1.de
fromuser=49721XXX
fromdomain=sip.1und1.de
context=eingehend-voip-1und1
qualify=no
canreinvite=no
allow=alaw
allow=ulaw
allow=g729
allow=gsm
allow=slinear
nat=no
insecure=very
dtmfmode=info
tos=0x18
 
Klappt es inzwischen bei Dir?

Ich wollte jetzt mein neuen 1&1 "DSL-Nummern" auf einem * mit aktullem cvs (1.6.2005) einrichten. Sieht alles gut aus, outbound klappt aber keine eingehenden Gespräche möglich.

Alle anderen Provider funktionieren, auf einer älteren * Version funzt auch der neue 1&1 Account.

Es muss irgendwie mit der neuen Version zusammenhängen.

EDIT: Wenn ich mit * angemeldet bin gibt es bei Anruf der Nummer ein hangup, wenn ich nicht registriert bin geht die Voicebox dran.

jo
 
Mein Problem hat sich wohl von selbst gelöst. Vor 5 Minuten ging der Anruf an meinen * noch nicht, bei weiteren Anruftests funktionierte es plötzlich.

jo
 
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.