SIP Gespräch bricht nach einigen Sekunden ab

BerndAusO

Neuer User
Mitglied seit
17 Mai 2009
Beiträge
23
Punkte für Reaktionen
0
Punkte
1
Hallo,

das Thema ist nicht neu, aber Hilfe habe ich bisher noch keine passende gefunden.
Das Problem ist, dass Gespräche, die von aussen kommen nach ca 20 Sekunden abgebrochen werden. Für den Anrufer scheint es , als ob der Gesprächspartner einfach nichts mehr sagt. Der Angerufene (mein SIP Telefon BT201 am Asterisk) hört ein Besetzzeichen.

Hier meine SIP.conf:
Code:
[general]
port=5060
bindaddr=0.0.0.0

externhost=checkip.dyndns.org     
externrefresh=10                      
localnet=192.168.2.0/255.255.255.0

disallow=all
allow=alaw
allow=gsm

srvlookup = yes

; Deutsche Sprachbausteine aktivieren
language=de

; bei Sipgate registrieren
register => uuuu:[email protected]/uuuu

[2000]
type=friend
secret=1234
host=dynamic
vmexten = 2999
mailbox = 2000

[sip-account]
type = friend
context = sipgate-in
username=uuuu
fromuser=uuuu
secret=pppp
host=sipgate.de
fromdomain=sigate.de
qualify=yes
insecure=port,invite
nat=yes
canreinvite = no

Mit sip debug ehalte ich folgenden Log:

Code:
   -- Executing [7589073@sipgate-in:1] Verbose("SIP/sip-account-081fb680", "3|### Eingehender SIP - Anruf von 01727395202 an 7589073") in new stack                               
    -- ### Eingehender SIP - Anruf von 01727395202 an 7589073                                                                                                                      
    -- Executing [7589073@sipgate-in:2] Dial("SIP/sip-account-081fb680", "SIP/2000|20") in new stack                                                                               
Audio is at 192.168.2.201 port 17558                                                                                                                                               
Adding codec 0x8 (alaw) to SDP                                                                                                                                                     
Adding codec 0x2 (gsm) to SDP                                                                                                                                                      
Adding non-codec 0x1 (telephone-event) to SDP                                                                                                                                      
Reliably Transmitting (no NAT) to 192.168.2.102:5060:                                                                                                                              
INVITE sip:[email protected]:5060;transport=udp SIP/2.0                                                                                                                           
Via: SIP/2.0/UDP 192.168.2.201:5060;branch=z9hG4bK1dc8b5e8;rport                                                                                                                   
From: "01727395202" <sip:[email protected]>;tag=as3bedd72e                                                                                                                 
To: <sip:[email protected]:5060;transport=udp>                                                                                                                                    
Contact: <sip:[email protected]>                                                                                                                                           
Call-ID: [email protected]                                                                                                                            
CSeq: 102 INVITE                                                                                                                                                                   
User-Agent: Asterisk PBX                                                                                                                                                           
Max-Forwards: 70                                                                                                                                                                   
Date: Thu, 18 Jun 2009 06:17:06 GMT                                                                                                                                                
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY                                                                                                                 
Supported: replaces                                                                                                                                                                
Content-Type: application/sdp                                                                                                                                                      
Content-Length: 265                                                                                                                                                                
                                                                                                                                                                                   
v=0                                                                                                                                                                                
o=root 27427 27427 IN IP4 192.168.2.201                                                                                                                                            
s=session                                                                                                                                                                          
c=IN IP4 192.168.2.201                                                                                                                                                             
t=0 0                                                                                                                                                                              
m=audio 17558 RTP/AVP 8 3 101                                                                                                                                                      
a=rtpmap:8 PCMA/8000                                                                                                                                                               
a=rtpmap:3 GSM/8000                                                                                                                                                                
a=rtpmap:101 telephone-event/8000                                                                                                                                                  
a=fmtp:101 0-16                                                                                                                                                                    
a=silenceSupp:off - - - -                                                                                                                                                          
a=ptime:20                                                                                                                                                                         
a=sendrecv                                                                                                                                                                         
                                                                                                                                                                                   
---                                                                                                                                                                                
    -- Called 2000                                                                                                                                                                 
                                                                                                                                                                                   
<--- SIP read from 192.168.2.102:5060 --->                                                                                                                                         
SIP/2.0 100 Trying                                                                                                                                                                 
Via: SIP/2.0/UDP 192.168.2.201:5060;branch=z9hG4bK1dc8b5e8;rport                                                                                                                   
From: "01727395202" <sip:[email protected]>;tag=as3bedd72e                                                                                                                 
To: <sip:[email protected]:5060;transport=udp>                                                                                                                                    
Call-ID: [email protected]                                                                                                                            
CSeq: 102 INVITE                                                                                                                                                                   
User-Agent: Grandstream BT200 1.1.6.37                                                                                                                                             
Content-Length: 0                                                                                                                                                                  
                                                                                                                                                                                   
                                                                                                                                                                                   
<------------->                                                                                                                                                                    
--- (8 headers 0 lines) ---                                                                                                                                                        
                                                                                                                                                                                   
<--- SIP read from 192.168.2.102:5060 --->                                                                                                                                         
SIP/2.0 180 Ringing                                                                                                                                                                
Via: SIP/2.0/UDP 192.168.2.201:5060;branch=z9hG4bK1dc8b5e8;rport                                                                                                                   
From: "01727395202" <sip:[email protected]>;tag=as3bedd72e                                                                                                                 
To: <sip:[email protected]:5060;transport=udp>;tag=56e523039c097df8                                                                                                               
Call-ID: [email protected]                                                                                                                            
CSeq: 102 INVITE                                                                                                                                                                   
User-Agent: Grandstream BT200 1.1.6.37                                                                                                                                             
Contact: <sip:[email protected]:5060;transport=udp>                                                                                                                               
Allow: INVITE,ACK,CANCEL,BYE,NOTIFY,REFER,OPTIONS,INFO,SUBSCRIBE,UPDATE,PRACK                                                                                                      
Content-Length: 0                                                                                                                                                                  
                                                                                                                                                                                   
                                                                                                                                                                                   
<------------->                                                                                                                                                                    
--- (10 headers 0 lines) ---                                                                                                                                                       
    -- SIP/2000-081ff690 is ringing                                                                                                                                                
                                                                                                                                                                                   
<--- Transmitting (NAT) to 217.10.79.9:5060 --->                                                                                                                                   
SIP/2.0 180 Ringing                                                                                                                                                                
Via: SIP/2.0/UDP 217.10.79.9:5060;branch=z9hG4bK5c6b.85c175a6.0;received=217.10.79.9                                                                                               
Via: SIP/2.0/UDP 172.20.40.2;branch=z9hG4bK5c6b.85c175a6.0                                                                                                                         
Via: SIP/2.0/UDP 217.10.79.9:5060;received=217.10.68.222;branch=z9hG4bK116f45c0                                                                                                    
Via: SIP/2.0/UDP 217.10.67.141:5060;branch=z9hG4bK116f45c0;rport=5060                                                                                                              
Record-Route: <sip:217.10.79.9;lr=on;ftag=as2d9c75fe>                                                                                                                              
Record-Route: <sip:172.20.40.2;lr=on>                                                                                                                                              
Record-Route: <sip:217.10.79.9;lr=on;ftag=as2d9c75fe>                                                                                                                              
From: "01727395202" <sip:[email protected]>;tag=as2d9c75fe                                                                                                                    
To: <sip:[email protected]>;tag=as2916f91d                                                                                                                                 
Call-ID: [email][email protected][/email]                                                                                                                               
CSeq: 102 INVITE                                                                                                                                                                   
User-Agent: Asterisk PBX                                                                                                                                                           
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY                                                                                                                 
Supported: replaces                                                                                                                                                                
Contact: <sip:[email protected]>                                                                                                                                                
Content-Length: 0                                                                                                                                                                  
                                                                                                                                                                                   
                                                                                                                                                                                   
<------------>                                                                                                                                                                     
                                                                                                                                                                                   
<--- SIP read from 192.168.2.102:5060 --->                                                                                                                                         
SIP/2.0 200 OK                                                                                                                                                                     
Via: SIP/2.0/UDP 192.168.2.201:5060;branch=z9hG4bK1dc8b5e8;rport                                                                                                                   
From: "01727395202" <sip:[email protected]>;tag=as3bedd72e                                                                                                                 
To: <sip:[email protected]:5060;transport=udp>;tag=56e523039c097df8                                                                                                               
Call-ID: [email protected]                                                                                                                            
CSeq: 102 INVITE                                                                                                                                                                   
User-Agent: Grandstream BT200 1.1.6.37                                                                                                                                             
Contact: <sip:[email protected]:5060;transport=udp>                                                                                                                               
Allow: INVITE,ACK,CANCEL,BYE,NOTIFY,REFER,OPTIONS,INFO,SUBSCRIBE,UPDATE,PRACK                                                                                                      
Content-Type: application/sdp                                                                                                                                                      
Supported: replaces, timer                                                                                                                                                         
Content-Length: 213                                                                                                                                                                
                                                                                                                                                                                   
v=0                                                                                                                                                                                
o=2000 8000 8000 IN IP4 192.168.2.102                                                                                                                                              
s=SIP Call                                                                                                                                                                         
c=IN IP4 192.168.2.102                                                                                                                                                             
t=0 0                                                                                                                                                                              
m=audio 5004 RTP/AVP 8 101                                                                                                                                                         
a=sendrecv                                                                                                                                                                         
a=rtpmap:8 PCMA/8000                                                                                                                                                               
a=ptime:20                                                                                                                                                                         
a=rtpmap:101 telephone-event/8000                                                                                                                                                  
a=fmtp:101 0-11                                                                                                                                                                    
                                                                                                                                                                                   
<------------->                                                                                                                                                                    
--- (12 headers 11 lines) ---                                                                                                                                                      
Found RTP audio format 8                                                                                                                                                           
Found RTP audio format 101                                                                                                                                                         
Peer audio RTP is at port 192.168.2.102:5004                                                                                                                                       
Found audio description format PCMA for ID 8                                                                                                                                       
Found audio description format telephone-event for ID 101                                                                                                                          
Capabilities: us - 0xa (gsm|alaw), peer - audio=0x8 (alaw)/video=0x0 (nothing), combined - 0x8 (alaw)                                                                              
Non-codec capabilities (dtmf): us - 0x1 (telephone-event), peer - 0x1 (telephone-event), combined - 0x1 (telephone-event)                                                          
Peer audio RTP is at port 192.168.2.102:5004                                                                                                                                       
list_route: hop: <sip:[email protected]:5060;transport=udp>                                                                                                                       
set_destination: Parsing <sip:[email protected]:5060;transport=udp> for address/port to send to                                                                                   
set_destination: set destination to 192.168.2.102, port 5060                                                                                                                       
Transmitting (no NAT) to 192.168.2.102:5060:                                                                                                                                       
ACK sip:[email protected]:5060;transport=udp SIP/2.0                                                                                                                              
Via: SIP/2.0/UDP 192.168.2.201:5060;branch=z9hG4bK7dba3a57;rport                                                                                                                   
From: "01727395202" <sip:[email protected]>;tag=as3bedd72e                                                                                                                 
To: <sip:[email protected]:5060;transport=udp>;tag=56e523039c097df8                                                                                                               
Contact: <sip:[email protected]>                                                                                                                                           
Call-ID: [email protected]                                                                                                                            
CSeq: 102 ACK                                                                                                                                                                      
User-Agent: Asterisk PBX                                                                                                                                                           
Max-Forwards: 70                                                                                                                                                                   
Content-Length: 0                                                                                                                                                                  
                                                                                                                                                                                   
                                                                                                                                                                                   
---                                                                                                                                                                                
    -- SIP/2000-081ff690 answered SIP/sip-account-081fb680                                                                                                                         
Audio is at 208.78.69.70 port 15184                                                                                                                                                
Adding codec 0x8 (alaw) to SDP                                                                                                                                                     
Adding codec 0x2 (gsm) to SDP                                                                                                                                                      
Adding non-codec 0x1 (telephone-event) to SDP                                                                                                                                      
                                                                                                                                                                                   
<--- Reliably Transmitting (NAT) to 217.10.79.9:5060 --->                                                                                                                          
SIP/2.0 200 OK                                                                                                                                                                     
Via: SIP/2.0/UDP 217.10.79.9:5060;branch=z9hG4bK5c6b.85c175a6.0;received=217.10.79.9                                                                                               
Via: SIP/2.0/UDP 172.20.40.2;branch=z9hG4bK5c6b.85c175a6.0                                                                                                                         
Via: SIP/2.0/UDP 217.10.79.9:5060;received=217.10.68.222;branch=z9hG4bK116f45c0                                                                                                    
Via: SIP/2.0/UDP 217.10.67.141:5060;branch=z9hG4bK116f45c0;rport=5060                                                                                                              
Record-Route: <sip:217.10.79.9;lr=on;ftag=as2d9c75fe>                                                                                                                              
Record-Route: <sip:172.20.40.2;lr=on>                                                                                                                                              
Record-Route: <sip:217.10.79.9;lr=on;ftag=as2d9c75fe>                                                                                                                              
From: "01727395202" <sip:[email protected]>;tag=as2d9c75fe                                                                                                                    
To: <sip:[email protected]>;tag=as2916f91d                                                                                                                                 
Call-ID: [email][email protected][/email]                                                                                                                               
CSeq: 102 INVITE                                                                                                                                                                   
User-Agent: Asterisk PBX                                                                                                                                                           
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY                                                                                                                 
Supported: replaces                                                                                                                                                                
Contact: <sip:[email protected]>                                                                                                                                                
Content-Type: application/sdp                                                                                                                                                      
Content-Length: 263                                                                                                                                                                
                                                                                                                                                                                   
v=0                                                                                                                                                                                
o=root 27427 27427 IN IP4 208.78.69.70                                                                                                                                             
s=session                                                                                                                                                                          
c=IN IP4 208.78.69.70                                                                                                                                                              
t=0 0                                                                                                                                                                              
m=audio 15184 RTP/AVP 8 3 101                                                                                                                                                      
a=rtpmap:8 PCMA/8000                                                                                                                                                               
a=rtpmap:3 GSM/8000                                                                                                                                                                
a=rtpmap:101 telephone-event/8000                                                                                                                                                  
a=fmtp:101 0-16                                                                                                                                                                    
a=silenceSupp:off - - - -                                                                                                                                                          
a=ptime:20                                                                                                                                                                         
a=sendrecv                                                                                                                                                                         
                                                                                                                                                                                   
<------------>                                                                                                                                                                     
    -- Packet2Packet bridging SIP/sip-account-081fb680 and SIP/2000-081ff690                                                                                                       
Retransmitting #1 (NAT) to 217.10.79.9:5060:                                                                                                                                       
SIP/2.0 200 OK                                                                                                                                                                     
Via: SIP/2.0/UDP 217.10.79.9:5060;branch=z9hG4bK5c6b.85c175a6.0;received=217.10.79.9                                                                                               
Via: SIP/2.0/UDP 172.20.40.2;branch=z9hG4bK5c6b.85c175a6.0                                                                                                                         
Via: SIP/2.0/UDP 217.10.79.9:5060;received=217.10.68.222;branch=z9hG4bK116f45c0                                                                                                    
Via: SIP/2.0/UDP 217.10.67.141:5060;branch=z9hG4bK116f45c0;rport=5060                                                                                                              
Record-Route: <sip:217.10.79.9;lr=on;ftag=as2d9c75fe>                                                                                                                              
Record-Route: <sip:172.20.40.2;lr=on>                                                                                                                                              
Record-Route: <sip:217.10.79.9;lr=on;ftag=as2d9c75fe>                                                                                                                              
From: "01727395202" <sip:[email protected]>;tag=as2d9c75fe                                                                                                                    
To: <sip:[email protected]>;tag=as2916f91d                                                                                                                                 
Call-ID: [email][email protected][/email]                                                                                                                               
CSeq: 102 INVITE                                                                                                                                                                   
User-Agent: Asterisk PBX                                                                                                                                                           
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY                                                                                                                 
Supported: replaces                                                                                                                                                                
Contact: <sip:[email protected]>                                                                                                                                                
Content-Type: application/sdp                                                                                                                                                      
Content-Length: 263                                                                                                                                                                
                                                                                                                                                                                   
v=0                                                                                                                                                                                
o=root 27427 27427 IN IP4 208.78.69.70                                                                                                                                             
s=session                                                                                                                                                                          
c=IN IP4 208.78.69.70                                                                                                                                                              
t=0 0                                                                                                                                                                              
m=audio 15184 RTP/AVP 8 3 101                                                                                                                                                      
a=rtpmap:8 PCMA/8000                                                                                                                                                               
a=rtpmap:3 GSM/8000                                                                                                                                                                
a=rtpmap:101 telephone-event/8000                                                                                                                                                  
a=fmtp:101 0-16                                                                                                                                                                    
a=silenceSupp:off - - - -                                                                                                                                                          
a=ptime:20                                                                                                                                                                         
a=sendrecv                                                                                                                                                                         
                                                                                                                                                                                   
---                                                                                                                                                                                
Retransmitting #2 (NAT) to 217.10.79.9:5060:                                                                                                                                       
SIP/2.0 200 OK                                                                                                                                                                     
Via: SIP/2.0/UDP 217.10.79.9:5060;branch=z9hG4bK5c6b.85c175a6.0;received=217.10.79.9                                                                                               
Via: SIP/2.0/UDP 172.20.40.2;branch=z9hG4bK5c6b.85c175a6.0                                                                                                                         
Via: SIP/2.0/UDP 217.10.79.9:5060;received=217.10.68.222;branch=z9hG4bK116f45c0                                                                                                    
Via: SIP/2.0/UDP 217.10.67.141:5060;branch=z9hG4bK116f45c0;rport=5060                                                                                                              
Record-Route: <sip:217.10.79.9;lr=on;ftag=as2d9c75fe>                                                                                                                              
Record-Route: <sip:172.20.40.2;lr=on>                                                                                                                                              
Record-Route: <sip:217.10.79.9;lr=on;ftag=as2d9c75fe>                                                                                                                              
From: "01727395202" <sip:[email protected]>;tag=as2d9c75fe                                                                                                                    
To: <sip:[email protected]>;tag=as2916f91d                                                                                                                                 
Call-ID: [email][email protected][/email]                                                                                                                               
CSeq: 102 INVITE                                                                                                                                                                   
User-Agent: Asterisk PBX                                                                                                                                                           
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY                                                                                                                 
Supported: replaces                                                                                                                                                                
Contact: <sip:[email protected]>                                                                                                                                                
Content-Type: application/sdp                                                                                                                                                      
Content-Length: 263                                                                                                                                                                
                                                                                                                                                                                   
v=0                                                                                                                                                                                
o=root 27427 27427 IN IP4 208.78.69.70                                                                                                                                             
s=session                                                                                                                                                                          
c=IN IP4 208.78.69.70                                                                                                                                                              
t=0 0                                                                                                                                                                              
m=audio 15184 RTP/AVP 8 3 101                                                                                                                                                      
a=rtpmap:8 PCMA/8000                                                                                                                                                               
a=rtpmap:3 GSM/8000                                                                                                                                                                
a=rtpmap:101 telephone-event/8000                                                                                                                                                  
a=fmtp:101 0-16                                                                                                                                                                    
a=silenceSupp:off - - - -                                                                                                                                                          
a=ptime:20                                                                                                                                                                         
a=sendrecv                                                                                                                                                                         
                                                                                                                                                                                   
---                                                                                                                                                                                
Retransmitting #3 (NAT) to 217.10.79.9:5060:                                                                                                                                       
SIP/2.0 200 OK                                                                                                                                                                     
Via: SIP/2.0/UDP 217.10.79.9:5060;branch=z9hG4bK5c6b.85c175a6.0;received=217.10.79.9                                                                                               
Via: SIP/2.0/UDP 172.20.40.2;branch=z9hG4bK5c6b.85c175a6.0                                                                                                                         
Via: SIP/2.0/UDP 217.10.79.9:5060;received=217.10.68.222;branch=z9hG4bK116f45c0                                                                                                    
Via: SIP/2.0/UDP 217.10.67.141:5060;branch=z9hG4bK116f45c0;rport=5060                                                                                                              
Record-Route: <sip:217.10.79.9;lr=on;ftag=as2d9c75fe>                                                                                                                              
Record-Route: <sip:172.20.40.2;lr=on>                                                                                                                                              
Record-Route: <sip:217.10.79.9;lr=on;ftag=as2d9c75fe>                                                                                                                              
From: "01727395202" <sip:[email protected]>;tag=as2d9c75fe                                                                                                                    
To: <sip:[email protected]>;tag=as2916f91d                                                                                                                                 
Call-ID: [email][email protected][/email]                                                                                                                               
CSeq: 102 INVITE                                                                                                                                                                   
User-Agent: Asterisk PBX                                                                                                                                                           
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY                                                                                                                 
Supported: replaces                                                                                                                                                                
Contact: <sip:[email protected]>                                                                                                                                                
Content-Type: application/sdp                                                                                                                                                      
Content-Length: 263                                                                                                                                                                
                                                                                                                                                                                   
v=0                                                                                                                                                                                
o=root 27427 27427 IN IP4 208.78.69.70                                                                                                                                             
s=session                                                                                                                                                                          
c=IN IP4 208.78.69.70                                                                                                                                                              
t=0 0                                                                                                                                                                              
m=audio 15184 RTP/AVP 8 3 101                                                                                                                                                      
a=rtpmap:8 PCMA/8000                                                                                                                                                               
a=rtpmap:3 GSM/8000                                                                                                                                                                
a=rtpmap:101 telephone-event/8000                                                                                                                                                  
a=fmtp:101 0-16                                                                                                                                                                    
a=silenceSupp:off - - - -                                                                                                                                                          
a=ptime:20                                                                                                                                                                         
a=sendrecv                                                                                                                                                                         
                                                                                                                                                                                   
---                                                                                                                                                                                
Retransmitting #4 (NAT) to 217.10.79.9:5060:                                                                                                                                       
SIP/2.0 200 OK                                                                                                                                                                     
Via: SIP/2.0/UDP 217.10.79.9:5060;branch=z9hG4bK5c6b.85c175a6.0;received=217.10.79.9                                                                                               
Via: SIP/2.0/UDP 172.20.40.2;branch=z9hG4bK5c6b.85c175a6.0                                                                                                                         
Via: SIP/2.0/UDP 217.10.79.9:5060;received=217.10.68.222;branch=z9hG4bK116f45c0                                                                                                    
Via: SIP/2.0/UDP 217.10.67.141:5060;branch=z9hG4bK116f45c0;rport=5060                                                                                                              
Record-Route: <sip:217.10.79.9;lr=on;ftag=as2d9c75fe>                                                                                                                              
Record-Route: <sip:172.20.40.2;lr=on>                                                                                                                                              
Record-Route: <sip:217.10.79.9;lr=on;ftag=as2d9c75fe>                                                                                                                              
From: "01727395202" <sip:[email protected]>;tag=as2d9c75fe                                                                                                                    
To: <sip:[email protected]>;tag=as2916f91d                                                                                                                                 
Call-ID: [email][email protected][/email]                                                                                                                               
CSeq: 102 INVITE                                                                                                                                                                   
User-Agent: Asterisk PBX                                                                                                                                                           
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY                                                                                                                 
Supported: replaces                                                                                                                                                                
Contact: <sip:[email protected]>                                                                                                                                                
Content-Type: application/sdp                                                                                                                                                      
Content-Length: 263                                                                                                                                                                
                                                                                                                                                                                   
v=0                                                                                                                                                                                
o=root 27427 27427 IN IP4 208.78.69.70                                                                                                                                             
s=session                                                                                                                                                                          
c=IN IP4 208.78.69.70                                                                                                                                                              
t=0 0                                                                                                                                                                              
m=audio 15184 RTP/AVP 8 3 101                                                                                                                                                      
a=rtpmap:8 PCMA/8000                                                                                                                                                               
a=rtpmap:3 GSM/8000                                                                                                                                                                
a=rtpmap:101 telephone-event/8000                                                                                                                                                  
a=fmtp:101 0-16                                                                                                                                                                    
a=silenceSupp:off - - - -                                                                                                                                                          
a=ptime:20                                                                                                                                                                         
a=sendrecv                                                                                                                                                                         
                                                                                                                                                                                   
---                                                                                                                                                                                
Retransmitting #5 (NAT) to 217.10.79.9:5060:                                                                                                                                       
SIP/2.0 200 OK                                                                                                                                                                     
Via: SIP/2.0/UDP 217.10.79.9:5060;branch=z9hG4bK5c6b.85c175a6.0;received=217.10.79.9                                                                                               
Via: SIP/2.0/UDP 172.20.40.2;branch=z9hG4bK5c6b.85c175a6.0                                                                                                                         
Via: SIP/2.0/UDP 217.10.79.9:5060;received=217.10.68.222;branch=z9hG4bK116f45c0                                                                                                    
Via: SIP/2.0/UDP 217.10.67.141:5060;branch=z9hG4bK116f45c0;rport=5060                                                                                                              
Record-Route: <sip:217.10.79.9;lr=on;ftag=as2d9c75fe>                                                                                                                              
Record-Route: <sip:172.20.40.2;lr=on>                                                                                                                                              
Record-Route: <sip:217.10.79.9;lr=on;ftag=as2d9c75fe>                                                                                                                              
From: "01727395202" <sip:[email protected]>;tag=as2d9c75fe                                                                                                                    
To: <sip:[email protected]>;tag=as2916f91d                                                                                                                                 
Call-ID: [email][email protected][/email]                                                                                                                               
CSeq: 102 INVITE                                                                                                                                                                   
User-Agent: Asterisk PBX                                                                                                                                                           
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY                                                                                                                 
Supported: replaces                                                                                                                                                                
Contact: <sip:[email protected]>                                                                                                                                                
Content-Type: application/sdp                                                                                                                                                      
Content-Length: 263                                                                                                                                                                
                                                                                                                                                                                   
v=0                                                                                                                                                                                
o=root 27427 27427 IN IP4 208.78.69.70                                                                                                                                             
s=session                                                                                                                                                                          
c=IN IP4 208.78.69.70                                                                                                                                                              
t=0 0                                                                                                                                                                              
m=audio 15184 RTP/AVP 8 3 101                                                                                                                                                      
a=rtpmap:8 PCMA/8000                                                                                                                                                               
a=rtpmap:3 GSM/8000                                                                                                                                                                
a=rtpmap:101 telephone-event/8000                                                                                                                                                  
a=fmtp:101 0-16                                                                                                                                                                    
a=silenceSupp:off - - - -                                                                                                                                                          
a=ptime:20                                                                                                                                                                         
a=sendrecv                                                                                                                                                                         
                                                                                                                                                                                   
---                                                                                                                                                                                
                                                                                                                                                                                   
<--- SIP read from 217.10.79.9:5060 --->                                                                                                                                           
                                                                                                                                                                                   
<------------->                                                                                                                                                                    
Retransmitting #6 (NAT) to 217.10.79.9:5060:                                                                                                                                       
SIP/2.0 200 OK                                                                                                                                                                     
Via: SIP/2.0/UDP 217.10.79.9:5060;branch=z9hG4bK5c6b.85c175a6.0;received=217.10.79.9                                                                                               
Via: SIP/2.0/UDP 172.20.40.2;branch=z9hG4bK5c6b.85c175a6.0                                                                                                                         
Via: SIP/2.0/UDP 217.10.79.9:5060;received=217.10.68.222;branch=z9hG4bK116f45c0                                                                                                    
Via: SIP/2.0/UDP 217.10.67.141:5060;branch=z9hG4bK116f45c0;rport=5060                                                                                                              
Record-Route: <sip:217.10.79.9;lr=on;ftag=as2d9c75fe>                                                                                                                              
Record-Route: <sip:172.20.40.2;lr=on>                                                                                                                                              
Record-Route: <sip:217.10.79.9;lr=on;ftag=as2d9c75fe>                                                                                                                              
From: "01727395202" <sip:[email protected]>;tag=as2d9c75fe                                                                                                                    
To: <sip:[email protected]>;tag=as2916f91d                                                                                                                                 
Call-ID: [email][email protected][/email]                                                                                                                               
CSeq: 102 INVITE                                                                                                                                                                   
User-Agent: Asterisk PBX                                                                                                                                                           
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY                                                                                                                 
Supported: replaces                                                                                                                                                                
Contact: <sip:[email protected]>                                                                                                                                                
Content-Type: application/sdp                                                                                                                                                      
Content-Length: 263                                                                                                                                                                
                                                                                                                                                                                   
v=0                                                                                                                                                                                
o=root 27427 27427 IN IP4 208.78.69.70                                                                                                                                             
s=session                                                                                                                                                                          
c=IN IP4 208.78.69.70                                                                                                                                                              
t=0 0                                                                                                                                                                              
m=audio 15184 RTP/AVP 8 3 101                                                                                                                                                      
a=rtpmap:8 PCMA/8000                                                                                                                                                               
a=rtpmap:3 GSM/8000                                                                                                                                                                
a=rtpmap:101 telephone-event/8000                                                                                                                                                  
a=fmtp:101 0-16                                                                                                                                                                    
a=silenceSupp:off - - - -                                                                                                                                                          
a=ptime:20                                                                                                                                                                         
a=sendrecv                                                                                                                                                                         
                                                                                                                                                                                   
---                                                                                                                                                                                
[Jun 18 08:17:27] WARNING[27452]: [COLOR="Red"]chan_sip.c:1980 retrans_pkt: Maximum retries exceeded on transmission [/COLOR][email protected] for seqno 102 (Critical Response) -- See doc/sip-retransmit.txt.                                                                                                                                                  
[Jun 18 08:17:27] [COLOR="Red"]WARNING[27452]: chan_sip.c:2002 retrans_pkt: Hanging up call [/COLOR][email protected] - no reply to our critical packet (see doc/sip-retransmit.txt).                                                                                                                                                                            
Scheduling destruction of SIP dialog '[email protected]' in 32000 ms (Method: INVITE)                                                                 
set_destination: Parsing <sip:[email protected]:5060;transport=udp> for address/port to send to                                                                                   
set_destination: set destination to 192.168.2.102, port 5060                                                                                                                       
Reliably Transmitting (no NAT) to 192.168.2.102:5060:                                                                                                                              
BYE sip:[email protected]:5060;transport=udp SIP/2.0                                                                                                                              
Via: SIP/2.0/UDP 192.168.2.201:5060;branch=z9hG4bK7eb98f65;rport                                                                                                                   
From: "01727395202" <sip:[email protected]>;tag=as3bedd72e                                                                                                                 
To: <sip:[email protected]:5060;transport=udp>;tag=56e523039c097df8                                                                                                               
Call-ID: [email protected]                                                                                                                            
CSeq: 103 BYE                                                                                                                                                                      
User-Agent: Asterisk PBX                                                                                                                                                           
Max-Forwards: 70                                                                                                                                                                   
X-Asterisk-HangupCause: Normal Clearing                                                                                                                                            
X-Asterisk-HangupCauseCode: 16                                                                                                                                                     
Content-Length: 0

Kann jemand helfen ?
Ich nutze Asterisk 1.4.25 hinter einem NAT.
 
Zuletzt bearbeitet:
Bei deaktivierter Firewall habe ich denselben Effekt
 
Das Problem sollte hier stecken:

-- Packet2Packet bridging SIP/sip-account-081fb680 and SIP/2000-081ff690

Zu deutsch: Asterisk versucht, nachdem die SIP-Signalisierung erfolgreich war, die RTP-Pakete direkt zu bridgen zwischen dem Telefon (2000) und dem Provider.
Das kann naturgemäß mit NAT nicht funktionieren.
Auf die schnelle zwei Empfehlungen, um das Verhalten des Asterisk hier zu ändern:

1. Entferne mal die Leerzeichen bei canreinvite = no in der sipgate-Sektion, ich bin mir nicht sicher, ob es hier mit Leerzeichen zum Ignorieren des Parameters kommen kann.

2. Sofern 1. nicht ausreicht, erweitere mal Deinen Dial-Befehl

-- Executing [7589073@sipgate-in:2] Dial("SIP/sip-account-081fb680", "SIP/2000|20") in new stack

auf etwas wie
Code:
Dial(SIP/2000,20,k)

(oder auch h,t oder w als Option). Hintergrund: Dies ermöglicht Funktionen aus features.conf und veranlasst Asterisk, unabhängig von sonstiger Konfiguration, im Medienstrom zu bleiben.

Viel Erfolg!
 
Die zuätzlichen Parameter im DIAL haben leider auch nichts gebracht. Die 'Bridging' Zeile ist nun weg, das Verhalten hat sich aber nicht geändert.
Code:
       -- Executing [7589073@sipgate-in:1] Verbose("SIP/sip-account-081fc2f0", "3|### Eingehender SIP - Anruf von 01788810371 an 7589073") in new stack                               
    -- ### Eingehender SIP - Anruf von 01788810371 an 7589073                                                                                                                      
    -- Executing [7589073@sipgate-in:2] Dial("SIP/sip-account-081fc2f0", "SIP/2000|20|tw") in new stack                                                                            
Audio is at 192.168.2.201 port 14066                                                                                                                                               
Adding codec 0x8 (alaw) to SDP                                                                                                                                                     
Adding codec 0x2 (gsm) to SDP                                                                                                                                                      
Adding non-codec 0x1 (telephone-event) to SDP                                                                                                                                      
Reliably Transmitting (no NAT) to 192.168.2.102:5060:                                                                                                                              
INVITE sip:[email protected]:5060;transport=udp SIP/2.0                                                                                                                           
Via: SIP/2.0/UDP 192.168.2.201:5060;branch=z9hG4bK1cba3c18;rport                                                                                                                   
From: "01788810371" <sip:[email protected]>;tag=as378208f1                                                                                                                 
To: <sip:[email protected]:5060;transport=udp>                                                                                                                                    
Contact: <sip:[email protected]>                                                                                                                                           
Call-ID: [email protected]                                                                                                                            
CSeq: 102 INVITE                                                                                                                                                                   
User-Agent: Asterisk PBX                                                                                                                                                           
Max-Forwards: 70                                                                                                                                                                   
Date: Sat, 20 Jun 2009 21:30:28 GMT                                                                                                                                                
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY                                                                                                                 
Supported: replaces                                                                                                                                                                
Content-Type: application/sdp                                                                                                                                                      
Content-Length: 265                                                                                                                                                                
                                                                                                                                                                                   
v=0                                                                                                                                                                                
o=root 27427 27427 IN IP4 192.168.2.201                                                                                                                                            
s=session                                                                                                                                                                          
c=IN IP4 192.168.2.201                                                                                                                                                             
t=0 0                                                                                                                                                                              
m=audio 14066 RTP/AVP 8 3 101                                                                                                                                                      
a=rtpmap:8 PCMA/8000                                                                                                                                                               
a=rtpmap:3 GSM/8000                                                                                                                                                                
a=rtpmap:101 telephone-event/8000                                                                                                                                                  
a=fmtp:101 0-16                                                                                                                                                                    
a=silenceSupp:off - - - -                                                                                                                                                          
a=ptime:20                                                                                                                                                                         
a=sendrecv                                                                                                                                                                         
                                                                                                                                                                                   
---                                                                                                                                                                                
    -- Called 2000                                                                                                                                                                 
                                                                                                                                                                                   
<--- SIP read from 192.168.2.102:5060 --->                                                                                                                                         
SIP/2.0 100 Trying                                                                                                                                                                 
Via: SIP/2.0/UDP 192.168.2.201:5060;branch=z9hG4bK1cba3c18;rport                                                                                                                   
From: "01788810371" <sip:[email protected]>;tag=as378208f1                                                                                                                 
To: <sip:[email protected]:5060;transport=udp>                                                                                                                                    
Call-ID: [email protected]                                                                                                                            
CSeq: 102 INVITE                                                                                                                                                                   
User-Agent: Grandstream BT200 1.1.6.37                                                                                                                                             
Content-Length: 0                                                                                                                                                                  
                                                                                                                                                                                   
                                                                                                                                                                                   
<------------->                                                                                                                                                                    
--- (8 headers 0 lines) ---                                                                                                                                                        
                                                                                                                                                                                   
<--- SIP read from 192.168.2.102:5060 --->                                                                                                                                         
SIP/2.0 180 Ringing                                                                                                                                                                
Via: SIP/2.0/UDP 192.168.2.201:5060;branch=z9hG4bK1cba3c18;rport                                                                                                                   
From: "01788810371" <sip:[email protected]>;tag=as378208f1                                                                                                                 
To: <sip:[email protected]:5060;transport=udp>;tag=09c30fd978bdd8dd                                                                                                               
Call-ID: [email protected]                                                                                                                            
CSeq: 102 INVITE                                                                                                                                                                   
User-Agent: Grandstream BT200 1.1.6.37                                                                                                                                             
Contact: <sip:[email protected]:5060;transport=udp>                                                                                                                               
Allow: INVITE,ACK,CANCEL,BYE,NOTIFY,REFER,OPTIONS,INFO,SUBSCRIBE,UPDATE,PRACK                                                                                                      
Content-Length: 0                                                                                                                                                                  
                                                                                                                                                                                   
                                                                                                                                                                                   
<------------->                                                                                                                                                                    
--- (10 headers 0 lines) ---                                                                                                                                                       
    -- SIP/2000-08200300 is ringing                                                                                                                                                
                                                                                                                                                                                   
<--- Transmitting (NAT) to 217.10.79.9:5060 --->                                                                                                                                   
SIP/2.0 180 Ringing                                                                                                                                                                
Via: SIP/2.0/UDP 217.10.79.9:5060;branch=z9hG4bK3409.63afc062.0;received=217.10.79.9                                                                                               
Via: SIP/2.0/UDP 172.20.40.2;branch=z9hG4bK3409.63afc062.0                                                                                                                         
Via: SIP/2.0/UDP 217.10.79.9:5060;received=217.10.68.6;branch=z9hG4bK2a337f9a                                                                                                      
Via: SIP/2.0/UDP 217.10.67.135:5060;branch=z9hG4bK2a337f9a;rport=5060                                                                                                              
Record-Route: <sip:217.10.79.9;lr=on;ftag=as065e6ccd>                                                                                                                              
Record-Route: <sip:172.20.40.2;lr=on>                                                                                                                                              
Record-Route: <sip:217.10.79.9;lr=on;ftag=as065e6ccd>                                                                                                                              
From: "01788810371" <sip:[email protected]>;tag=as065e6ccd                                                                                                                    
To: <sip:[email protected]>;tag=as4b9f917d                                                                                                                                 
Call-ID: [email protected]                                                                                                                               
CSeq: 102 INVITE                                                                                                                                                                   
User-Agent: Asterisk PBX                                                                                                                                                           
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY                                                                                                                 
Supported: replaces                                                                                                                                                                
Contact: <sip:[email protected]>                                                                                                                                                
Content-Length: 0                                                                                                                                                                  
                                                                                                                                                                                   
                                                                                                                                                                                   
<------------>                                                                                                                                                                     
                                                                                                                                                                                   
<--- SIP read from 192.168.2.102:5060 --->                                                                                                                                         
SIP/2.0 200 OK                                                                                                                                                                     
Via: SIP/2.0/UDP 192.168.2.201:5060;branch=z9hG4bK1cba3c18;rport                                                                                                                   
From: "01788810371" <sip:[email protected]>;tag=as378208f1                                                                                                                 
To: <sip:[email protected]:5060;transport=udp>;tag=09c30fd978bdd8dd                                                                                                               
Call-ID: [email protected]                                                                                                                            
CSeq: 102 INVITE                                                                                                                                                                   
User-Agent: Grandstream BT200 1.1.6.37                                                                                                                                             
Contact: <sip:[email protected]:5060;transport=udp>                                                                                                                               
Allow: INVITE,ACK,CANCEL,BYE,NOTIFY,REFER,OPTIONS,INFO,SUBSCRIBE,UPDATE,PRACK                                                                                                      
Content-Type: application/sdp                                                                                                                                                      
Supported: replaces, timer                                                                                                                                                         
Content-Length: 213                                                                                                                                                                
                                                                                                                                                                                   
v=0                                                                                                                                                                                
o=2000 8000 8000 IN IP4 192.168.2.102                                                                                                                                              
s=SIP Call                                                                                                                                                                         
c=IN IP4 192.168.2.102                                                                                                                                                             
t=0 0                                                                                                                                                                              
m=audio 5004 RTP/AVP 8 101                                                                                                                                                         
a=sendrecv                                                                                                                                                                         
a=rtpmap:8 PCMA/8000                                                                                                                                                               
a=ptime:20                                                                                                                                                                         
a=rtpmap:101 telephone-event/8000                                                                                                                                                  
a=fmtp:101 0-11                                                                                                                                                                    
                                                                                                                                                                                   
<------------->                                                                                                                                                                    
--- (12 headers 11 lines) ---                                                                                                                                                      
Found RTP audio format 8                                                                                                                                                           
Found RTP audio format 101                                                                                                                                                         
Peer audio RTP is at port 192.168.2.102:5004                                                                                                                                       
Found audio description format PCMA for ID 8                                                                                                                                       
Found audio description format telephone-event for ID 101                                                                                                                          
Capabilities: us - 0xa (gsm|alaw), peer - audio=0x8 (alaw)/video=0x0 (nothing), combined - 0x8 (alaw)                                                                              
Non-codec capabilities (dtmf): us - 0x1 (telephone-event), peer - 0x1 (telephone-event), combined - 0x1 (telephone-event)                                                          
Peer audio RTP is at port 192.168.2.102:5004                                                                                                                                       
list_route: hop: <sip:[email protected]:5060;transport=udp>                                                                                                                       
set_destination: Parsing <sip:[email protected]:5060;transport=udp> for address/port to send to                                                                                   
set_destination: set destination to 192.168.2.102, port 5060                                                                                                                       
Transmitting (no NAT) to 192.168.2.102:5060:                                                                                                                                       
ACK sip:[email protected]:5060;transport=udp SIP/2.0                                                                                                                              
Via: SIP/2.0/UDP 192.168.2.201:5060;branch=z9hG4bK7a129230;rport                                                                                                                   
From: "01788810371" <sip:[email protected]>;tag=as378208f1                                                                                                                 
To: <sip:[email protected]:5060;transport=udp>;tag=09c30fd978bdd8dd                                                                                                               
Contact: <sip:[email protected]>                                                                                                                                           
Call-ID: [email protected]                                                                                                                            
CSeq: 102 ACK                                                                                                                                                                      
User-Agent: Asterisk PBX                                                                                                                                                           
Max-Forwards: 70                                                                                                                                                                   
Content-Length: 0                                                                                                                                                                  
                                                                                                                                                                                   
                                                                                                                                                                                   
---                                                                                                                                                                                
    -- SIP/2000-08200300 answered SIP/sip-account-081fc2f0                                                                                                                         
Audio is at 208.78.68.70 port 13692                                                                                                                                                
Adding codec 0x8 (alaw) to SDP                                                                                                                                                     
Adding codec 0x2 (gsm) to SDP                                                                                                                                                      
Adding non-codec 0x1 (telephone-event) to SDP                                                                                                                                      
                                                                                                                                                                                   
<--- Reliably Transmitting (NAT) to 217.10.79.9:5060 --->                                                                                                                          
SIP/2.0 200 OK                                                                                                                                                                     
Via: SIP/2.0/UDP 217.10.79.9:5060;branch=z9hG4bK3409.63afc062.0;received=217.10.79.9                                                                                               
Via: SIP/2.0/UDP 172.20.40.2;branch=z9hG4bK3409.63afc062.0                                                                                                                         
Via: SIP/2.0/UDP 217.10.79.9:5060;received=217.10.68.6;branch=z9hG4bK2a337f9a                                                                                                      
Via: SIP/2.0/UDP 217.10.67.135:5060;branch=z9hG4bK2a337f9a;rport=5060                                                                                                              
Record-Route: <sip:217.10.79.9;lr=on;ftag=as065e6ccd>                                                                                                                              
Record-Route: <sip:172.20.40.2;lr=on>                                                                                                                                              
Record-Route: <sip:217.10.79.9;lr=on;ftag=as065e6ccd>                                                                                                                              
From: "01788810371" <sip:[email protected]>;tag=as065e6ccd                                                                                                                    
To: <sip:[email protected]>;tag=as4b9f917d                                                                                                                                 
Call-ID: [email protected]                                                                                                                               
CSeq: 102 INVITE                                                                                                                                                                   
User-Agent: Asterisk PBX                                                                                                                                                           
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY                                                                                                                 
Supported: replaces                                                                                                                                                                
Contact: <sip:[email protected]>                                                                                                                                                
Content-Type: application/sdp                                                                                                                                                      
Content-Length: 263                                                                                                                                                                
                                                                                                                                                                                   
v=0                                                                                                                                                                                
o=root 27427 27427 IN IP4 208.78.68.70                                                                                                                                             
s=session                                                                                                                                                                          
c=IN IP4 208.78.68.70                                                                                                                                                              
t=0 0                                                                                                                                                                              
m=audio 13692 RTP/AVP 8 3 101                                                                                                                                                      
a=rtpmap:8 PCMA/8000                                                                                                                                                               
a=rtpmap:3 GSM/8000                                                                                                                                                                
a=rtpmap:101 telephone-event/8000                                                                                                                                                  
a=fmtp:101 0-16                                                                                                                                                                    
a=silenceSupp:off - - - -                                                                                                                                                          
a=ptime:20                                                                                                                                                                         
a=sendrecv                                                                                                                                                                         
                                                                                                                                                                                   
<------------>                                                                                                                                                                     
Retransmitting #1 (NAT) to 217.10.79.9:5060:                                                                                                                                       
SIP/2.0 200 OK                                                                                                                                                                     
Via: SIP/2.0/UDP 217.10.79.9:5060;branch=z9hG4bK3409.63afc062.0;received=217.10.79.9                                                                                               
Via: SIP/2.0/UDP 172.20.40.2;branch=z9hG4bK3409.63afc062.0                                                                                                                         
Via: SIP/2.0/UDP 217.10.79.9:5060;received=217.10.68.6;branch=z9hG4bK2a337f9a                                                                                                      
Via: SIP/2.0/UDP 217.10.67.135:5060;branch=z9hG4bK2a337f9a;rport=5060                                                                                                              
Record-Route: <sip:217.10.79.9;lr=on;ftag=as065e6ccd>                                                                                                                              
Record-Route: <sip:172.20.40.2;lr=on>                                                                                                                                              
Record-Route: <sip:217.10.79.9;lr=on;ftag=as065e6ccd>                                                                                                                              
From: "01788810371" <sip:[email protected]>;tag=as065e6ccd                                                                                                                    
To: <sip:[email protected]>;tag=as4b9f917d                                                                                                                                 
Call-ID: [email protected]                                                                                                                               
CSeq: 102 INVITE                                                                                                                                                                   
User-Agent: Asterisk PBX                                                                                                                                                           
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY                                                                                                                 
Supported: replaces                                                                                                                                                                
Contact: <sip:[email protected]>                                                                                                                                                
Content-Type: application/sdp                                                                                                                                                      
Content-Length: 263                                                                                                                                                                
                                                                                                                                                                                   
v=0                                                                                                                                                                                
o=root 27427 27427 IN IP4 208.78.68.70                                                                                                                                             
s=session                                                                                                                                                                          
c=IN IP4 208.78.68.70                                                                                                                                                              
t=0 0                                                                                                                                                                              
m=audio 13692 RTP/AVP 8 3 101                                                                                                                                                      
a=rtpmap:8 PCMA/8000                                                                                                                                                               
a=rtpmap:3 GSM/8000                                                                                                                                                                
a=rtpmap:101 telephone-event/8000                                                                                                                                                  
a=fmtp:101 0-16                                                                                                                                                                    
a=silenceSupp:off - - - -                                                                                                                                                          
a=ptime:20                                                                                                                                                                         
a=sendrecv                                                                                                                                                                         
                                                                                                                                                                                   
---                                                                                                                                                                                
Retransmitting #2 (NAT) to 217.10.79.9:5060:                                                                                                                                       
SIP/2.0 200 OK                                                                                                                                                                     
Via: SIP/2.0/UDP 217.10.79.9:5060;branch=z9hG4bK3409.63afc062.0;received=217.10.79.9                                                                                               
Via: SIP/2.0/UDP 172.20.40.2;branch=z9hG4bK3409.63afc062.0                                                                                                                         
Via: SIP/2.0/UDP 217.10.79.9:5060;received=217.10.68.6;branch=z9hG4bK2a337f9a                                                                                                      
Via: SIP/2.0/UDP 217.10.67.135:5060;branch=z9hG4bK2a337f9a;rport=5060                                                                                                              
Record-Route: <sip:217.10.79.9;lr=on;ftag=as065e6ccd>                                                                                                                              
Record-Route: <sip:172.20.40.2;lr=on>                                                                                                                                              
Record-Route: <sip:217.10.79.9;lr=on;ftag=as065e6ccd>                                                                                                                              
From: "01788810371" <sip:[email protected]>;tag=as065e6ccd                                                                                                                    
To: <sip:[email protected]>;tag=as4b9f917d                                                                                                                                 
Call-ID: [email protected]                                                                                                                               
CSeq: 102 INVITE                                                                                                                                                                   
User-Agent: Asterisk PBX                                                                                                                                                           
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY                                                                                                                 
Supported: replaces                                                                                                                                                                
Contact: <sip:[email protected]>                                                                                                                                                
Content-Type: application/sdp                                                                                                                                                      
Content-Length: 263                                                                                                                                                                
                                                                                                                                                                                   
v=0                                                                                                                                                                                
o=root 27427 27427 IN IP4 208.78.68.70                                                                                                                                             
s=session                                                                                                                                                                          
c=IN IP4 208.78.68.70                                                                                                                                                              
t=0 0                                                                                                                                                                              
m=audio 13692 RTP/AVP 8 3 101                                                                                                                                                      
a=rtpmap:8 PCMA/8000                                                                                                                                                               
a=rtpmap:3 GSM/8000                                                                                                                                                                
a=rtpmap:101 telephone-event/8000                                                                                                                                                  
a=fmtp:101 0-16                                                                                                                                                                    
a=silenceSupp:off - - - -                                                                                                                                                          
a=ptime:20                                                                                                                                                                         
a=sendrecv                                                                                                                                                                         
                                                                                                                                                                                   
---                                                                                                                                                                                
Retransmitting #3 (NAT) to 217.10.79.9:5060:                                                                                                                                       
SIP/2.0 200 OK                                                                                                                                                                     
Via: SIP/2.0/UDP 217.10.79.9:5060;branch=z9hG4bK3409.63afc062.0;received=217.10.79.9                                                                                               
Via: SIP/2.0/UDP 172.20.40.2;branch=z9hG4bK3409.63afc062.0                                                                                                                         
Via: SIP/2.0/UDP 217.10.79.9:5060;received=217.10.68.6;branch=z9hG4bK2a337f9a                                                                                                      
Via: SIP/2.0/UDP 217.10.67.135:5060;branch=z9hG4bK2a337f9a;rport=5060                                                                                                              
Record-Route: <sip:217.10.79.9;lr=on;ftag=as065e6ccd>                                                                                                                              
Record-Route: <sip:172.20.40.2;lr=on>                                                                                                                                              
Record-Route: <sip:217.10.79.9;lr=on;ftag=as065e6ccd>                                                                                                                              
From: "01788810371" <sip:[email protected]>;tag=as065e6ccd                                                                                                                    
To: <sip:[email protected]>;tag=as4b9f917d                                                                                                                                 
Call-ID: [email protected]                                                                                                                               
CSeq: 102 INVITE                                                                                                                                                                   
User-Agent: Asterisk PBX                                                                                                                                                           
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY                                                                                                                 
Supported: replaces                                                                                                                                                                
Contact: <sip:[email protected]>                                                                                                                                                
Content-Type: application/sdp                                                                                                                                                      
Content-Length: 263                                                                                                                                                                
                                                                                                                                                                                   
v=0                                                                                                                                                                                
o=root 27427 27427 IN IP4 208.78.68.70                                                                                                                                             
s=session                                                                                                                                                                          
c=IN IP4 208.78.68.70                                                                                                                                                              
t=0 0                                                                                                                                                                              
m=audio 13692 RTP/AVP 8 3 101                                                                                                                                                      
a=rtpmap:8 PCMA/8000                                                                                                                                                               
a=rtpmap:3 GSM/8000                                                                                                                                                                
a=rtpmap:101 telephone-event/8000                                                                                                                                                  
a=fmtp:101 0-16                                                                                                                                                                    
a=silenceSupp:off - - - -                                                                                                                                                          
a=ptime:20                                                                                                                                                                         
a=sendrecv                                                                                                                                                                         
                                                                                                                                                                                   
---                                                                                                                                                                                
Retransmitting #4 (NAT) to 217.10.79.9:5060:                                                                                                                                       
SIP/2.0 200 OK                                                                                                                                                                     
Via: SIP/2.0/UDP 217.10.79.9:5060;branch=z9hG4bK3409.63afc062.0;received=217.10.79.9                                                                                               
Via: SIP/2.0/UDP 172.20.40.2;branch=z9hG4bK3409.63afc062.0                                                                                                                         
Via: SIP/2.0/UDP 217.10.79.9:5060;received=217.10.68.6;branch=z9hG4bK2a337f9a                                                                                                      
Via: SIP/2.0/UDP 217.10.67.135:5060;branch=z9hG4bK2a337f9a;rport=5060                                                                                                              
Record-Route: <sip:217.10.79.9;lr=on;ftag=as065e6ccd>                                                                                                                              
Record-Route: <sip:172.20.40.2;lr=on>                                                                                                                                              
Record-Route: <sip:217.10.79.9;lr=on;ftag=as065e6ccd>                                                                                                                              
From: "01788810371" <sip:[email protected]>;tag=as065e6ccd                                                                                                                    
To: <sip:[email protected]>;tag=as4b9f917d                                                                                                                                 
Call-ID: [email protected]                                                                                                                               
CSeq: 102 INVITE                                                                                                                                                                   
User-Agent: Asterisk PBX                                                                                                                                                           
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY                                                                                                                 
Supported: replaces                                                                                                                                                                
Contact: <sip:[email protected]>                                                                                                                                                
Content-Type: application/sdp                                                                                                                                                      
Content-Length: 263                                                                                                                                                                
                                                                                                                                                                                   
v=0                                                                                                                                                                                
o=root 27427 27427 IN IP4 208.78.68.70                                                                                                                                             
s=session                                                                                                                                                                          
c=IN IP4 208.78.68.70                                                                                                                                                              
t=0 0                                                                                                                                                                              
m=audio 13692 RTP/AVP 8 3 101                                                                                                                                                      
a=rtpmap:8 PCMA/8000                                                                                                                                                               
a=rtpmap:3 GSM/8000                                                                                                                                                                
a=rtpmap:101 telephone-event/8000                                                                                                                                                  
a=fmtp:101 0-16                                                                                                                                                                    
a=silenceSupp:off - - - -                                                                                                                                                          
a=ptime:20                                                                                                                                                                         
a=sendrecv                                                                                                                                                                         
                                                                                                                                                                                   
---                                                                                                                                                                                
                                                                                                                                                                                   
<--- SIP read from 217.10.79.9:5060 --->                                                                                                                                           
                                                                                                                                                                                   
<------------->                                                                                                                                                                    
Retransmitting #5 (NAT) to 217.10.79.9:5060:                                                                                                                                       
SIP/2.0 200 OK                                                                                                                                                                     
Via: SIP/2.0/UDP 217.10.79.9:5060;branch=z9hG4bK3409.63afc062.0;received=217.10.79.9                                                                                               
Via: SIP/2.0/UDP 172.20.40.2;branch=z9hG4bK3409.63afc062.0                                                                                                                         
Via: SIP/2.0/UDP 217.10.79.9:5060;received=217.10.68.6;branch=z9hG4bK2a337f9a                                                                                                      
Via: SIP/2.0/UDP 217.10.67.135:5060;branch=z9hG4bK2a337f9a;rport=5060                                                                                                              
Record-Route: <sip:217.10.79.9;lr=on;ftag=as065e6ccd>                                                                                                                              
Record-Route: <sip:172.20.40.2;lr=on>                                                                                                                                              
Record-Route: <sip:217.10.79.9;lr=on;ftag=as065e6ccd>                                                                                                                              
From: "01788810371" <sip:[email protected]>;tag=as065e6ccd                                                                                                                    
To: <sip:[email protected]>;tag=as4b9f917d                                                                                                                                 
Call-ID: [email protected]                                                                                                                               
CSeq: 102 INVITE                                                                                                                                                                   
User-Agent: Asterisk PBX                                                                                                                                                           
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY                                                                                                                 
Supported: replaces                                                                                                                                                                
Contact: <sip:[email protected]>                                                                                                                                                
Content-Type: application/sdp                                                                                                                                                      
Content-Length: 263                                                                                                                                                                
                                                                                                                                                                                   
v=0                                                                                                                                                                                
o=root 27427 27427 IN IP4 208.78.68.70                                                                                                                                             
s=session                                                                                                                                                                          
c=IN IP4 208.78.68.70                                                                                                                                                              
t=0 0                                                                                                                                                                              
m=audio 13692 RTP/AVP 8 3 101                                                                                                                                                      
a=rtpmap:8 PCMA/8000                                                                                                                                                               
a=rtpmap:3 GSM/8000                                                                                                                                                                
a=rtpmap:101 telephone-event/8000                                                                                                                                                  
a=fmtp:101 0-16                                                                                                                                                                    
a=silenceSupp:off - - - -                                                                                                                                                          
a=ptime:20                                                                                                                                                                         
a=sendrecv                                                                                                                                                                         
                                                                                                                                                                                   
---                                                                                                                                                                                
Retransmitting #6 (NAT) to 217.10.79.9:5060:                                                                                                                                       
SIP/2.0 200 OK                                                                                                                                                                     
Via: SIP/2.0/UDP 217.10.79.9:5060;branch=z9hG4bK3409.63afc062.0;received=217.10.79.9                                                                                               
Via: SIP/2.0/UDP 172.20.40.2;branch=z9hG4bK3409.63afc062.0                                                                                                                         
Via: SIP/2.0/UDP 217.10.79.9:5060;received=217.10.68.6;branch=z9hG4bK2a337f9a                                                                                                      
Via: SIP/2.0/UDP 217.10.67.135:5060;branch=z9hG4bK2a337f9a;rport=5060                                                                                                              
Record-Route: <sip:217.10.79.9;lr=on;ftag=as065e6ccd>                                                                                                                              
Record-Route: <sip:172.20.40.2;lr=on>                                                                                                                                              
Record-Route: <sip:217.10.79.9;lr=on;ftag=as065e6ccd>                                                                                                                              
From: "01788810371" <sip:[email protected]>;tag=as065e6ccd                                                                                                                    
To: <sip:[email protected]>;tag=as4b9f917d                                                                                                                                 
Call-ID: [email protected]                                                                                                                               
CSeq: 102 INVITE                                                                                                                                                                   
User-Agent: Asterisk PBX                                                                                                                                                           
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY                                                                                                                 
Supported: replaces                                                                                                                                                                
Contact: <sip:[email protected]>                                                                                                                                                
Content-Type: application/sdp                                                                                                                                                      
Content-Length: 263                                                                                                                                                                
                                                                                                                                                                                   
v=0                                                                                                                                                                                
o=root 27427 27427 IN IP4 208.78.68.70                                                                                                                                             
s=session                                                                                                                                                                          
c=IN IP4 208.78.68.70                                                                                                                                                              
t=0 0                                                                                                                                                                              
m=audio 13692 RTP/AVP 8 3 101                                                                                                                                                      
a=rtpmap:8 PCMA/8000                                                                                                                                                               
a=rtpmap:3 GSM/8000                                                                                                                                                                
a=rtpmap:101 telephone-event/8000                                                                                                                                                  
a=fmtp:101 0-16                                                                                                                                                                    
a=silenceSupp:off - - - -                                                                                                                                                          
a=ptime:20                                                                                                                                                                         
a=sendrecv                                                                                                                                                                         
                                                                                                                                                                                   
---                                                                                                                                                                                
[Jun 20 23:30:45] NOTICE[27452]: chan_sip.c:7653 sip_reregister:    -- Re-registration for  [email protected]                                                                     
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 204.13.249.70:5060;branch=z9hG4bK2deeb07d;rport                                                                                                                   
From: <sip:[email protected]>;tag=as5ff6af89                                                                                                                                      
To: <sip:[email protected]>                                                                                                                                                       
Call-ID: [email protected]                                                                                                                                
CSeq: 2984 REGISTER                                                                                                                                                                
User-Agent: Asterisk PBX                                                                                                                                                           
Max-Forwards: 70                                                                                                                                                                   
Authorization: Digest username="7589073", realm="sipgate.de", algorithm=MD5, uri="sip:sipgate.de", nonce="4a3e0b266825faa931444380605f8860c30a55e6", response="3154d53db2345c2d9ae59c8b3c2a515f"                                                                                                                                                                      
Expires: 120                                                                                                                                                                       
Contact: <sip:[email protected]>                                                                                                                                               
Event: registration                                                                                                                                                                
Content-Length: 0                                                                                                                                                                  
                                                                                                                                                                                   
                                                                                                                                                                                   
---                                                                                                                                                                                
                                                                                                                                                                                   
<--- SIP read from 217.10.79.9:5060 --->                                                                                                                                           
SIP/2.0 200 OK                                                                                                                                                                     
Via: SIP/2.0/UDP 204.13.249.70:5060;received=84.163.194.114;branch=z9hG4bK2deeb07d;rport=5060                                                                                      
From: <sip:[email protected]>;tag=as5ff6af89                                                                                                                                      
To: <sip:[email protected]>;tag=8367f0f887e3954243ec30fa0f5db288.873f                                                                                                             
Call-ID: [email protected]                                                                                                                                
CSeq: 2984 REGISTER                                                                                                                                                                
Contact: <sip:[email protected]>;expires=14;received="sip:84.163.194.114:5060", <sip:[email protected]>;expires=120;received="sip:84.163.194.114:5060"                      
Content-Length: 0                                                                                                                                                                  
                                                                                                                                                                                   
                                                                                                                                                                                   
<------------->                                                                                                                                                                    
--- (8 headers 0 lines) ---                                                                                                                                                        
Scheduling destruction of SIP dialog '[email protected]' in 32000 ms (Method: REGISTER)                                                                   
[Jun 20 23:30:45] NOTICE[27452]: chan_sip.c:12942 handle_response_register: Outbound Registration: Expiry for sipgate.de is 120 sec (Scheduling reregistration in 105 s)           
[Jun 20 23:30:49] WARNING[27452]: chan_sip.c:1980 retrans_pkt: Maximum retries exceeded on transmission [email protected] for seqno 102 (Critical Response) -- See doc/sip-retransmit.txt.                                                                                                                                                  
[Jun 20 23:30:49] WARNING[27452]: chan_sip.c:2002 retrans_pkt: Hanging up call [email protected] - no reply to our critical packet (see doc/sip-retransmit.txt).                                                                                                                                                                            
Scheduling destruction of SIP dialog '[email protected]' in 32000 ms (Method: INVITE)                                                                 
set_destination: Parsing <sip:[email protected]:5060;transport=udp> for address/port to send to                                                                                   
set_destination: set destination to 192.168.2.102, port 5060                                                                                                                       
Reliably Transmitting (no NAT) to 192.168.2.102:5060:                                                                                                                              
BYE sip:[email protected]:5060;transport=udp SIP/2.0                                                                                                                              
Via: SIP/2.0/UDP 192.168.2.201:5060;branch=z9hG4bK73cdc89a;rport                                                                                                                   
From: "01788810371" <sip:[email protected]>;tag=as378208f1                                                                                                                 
To: <sip:[email protected]:5060;transport=udp>;tag=09c30fd978bdd8dd                                                                                                               
Call-ID: [email protected]                                                                                                                            
CSeq: 103 BYE                                                                                                                                                                      
User-Agent: Asterisk PBX                                                                                                                                                           
Max-Forwards: 70                                                                                                                                                                   
X-Asterisk-HangupCause: Normal Clearing                                                                                                                                            
X-Asterisk-HangupCauseCode: 16                                                                                                                                                     
Content-Length: 0
 
Zuletzt bearbeitet:
Dann scheint es tatsächlich ein Firewall-Problem zu geben: Der Grund für das Retransmit - das dann zum Abbruch führt - ist laut Doku (siehe Debugmeldung) ein ausbleibendes ACK-Paket zum Paket

<--- Reliably Transmitting (NAT) to 217.10.79.9:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 217.10.79.9:5060;branch=z9hG4bK3409.63afc062.0;received=217.10.79.9
Via: SIP/2.0/UDP 172.20.40.2;branch=z9hG4bK3409.63afc062.0
Via: SIP/2.0/UDP 217.10.79.9:5060;received=217.10.68.6;branch=z9hG4bK2a337f9a
Via: SIP/2.0/UDP 217.10.67.135:5060;branch=z9hG4bK2a337f9a;rport=5060
Record-Route: <sip:217.10.79.9;lr=on;ftag=as065e6ccd>
Record-Route: <sip:172.20.40.2;lr=on>
Record-Route: <sip:217.10.79.9;lr=on;ftag=as065e6ccd>
From: "01788810371" <sip:[email protected]>;tag=as065e6ccd
To: <sip:[email protected]>;tag=as4b9f917d
Call-ID: [email protected]
CSeq: 102 INVITE
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces
Contact: <sip:[email protected]>
Content-Type: application/sdp
Content-Length: 263

v=0
o=root 27427 27427 IN IP4 208.78.68.70
s=session
c=IN IP4 208.78.68.70
t=0 0
m=audio 13692 RTP/AVP 8 3 101
a=rtpmap:8 PCMA/8000
a=rtpmap:3 GSM/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=silenceSupp:eek:ff - - - -
a=ptime:20
a=sendrecv

Insoweit hat stinkstiefel recht: Das ACK-Paket von Sipgate scheint hier auf Deinem Asterisk einfach nicht anzukommen, dann gibt es Retransmits (versuche es nochmal), die aber nach einer gewissen Zeit abgebrochen werden.

Das fehlende Paket sollt etwa so aussehen und dem vorzitierten folgen:

Code:
<--- SIP read from UDP://217.10.79.9:5060 --->
ACK sip:[email protected] SIP/2.0
Via: SIP/2.0/UDP 217.10.79.9:5060;branch=z9hG4bK3409.63afc062.0
Via: SIP/2.0/UDP 172.20.40.4;branch=z9hG4bK3409.63afc062.0
Via: SIP/2.0/UDP 217.10.79.9:5060;received=217.10.68.6;branch=z9hG4bK2a337f9a
Via: SIP/2.0/UDP 217.10.67.4:5060;branch=z9hG4bK2a337f9a;rport=5060
From: "01788810371" <sip:[email protected]>;tag=as065e6ccd
To: <sip:[email protected]>;tag=as4b9f917d
Contact: <sip:[email protected]>
Call-ID: [email protected]
CSeq: 102 ACK
Max-Forwards: 67
Content-Length: 0
X-hint: rr-enforced

(Tags und branches per C&P von Dir übernommen).

In einem - asteriskseits - idfentischen Versuchsaufbau funktioniert das hier ohne Probleme, wenn Port 5060 und die RTP-Ports laut rtp.conf in der Firewall auf die Asterisk-Maschine gefowarded sind.
BTW: Das ist ja jeweils das Inbound-Scenario, d.h. Du wirst angerufen. Funktioniert denn das Outbound-Scenario?
 
Insoweit hat stinkstiefel recht: Das ACK-Paket von Sipgate scheint hier auf Deinem Asterisk einfach nicht anzukommen,...

Genau an diesem Punkt bin ich jedoch nicht ganz sicher warum es nicht ankommt und deswegen hatte ich gefragt ob in den Logs der Firewall diesbezüglich etwas zu sehen ist.
 
Ich versteh nicht ganz, was mit Firewalllog gemeint ist. Die Firewall läuft auf dem DSL Router Sinus 1054 DSL. Ein Log finde ich dort nicht.
 
Hallo,
das Problem scheint gelöst. Der Fehler lag in der sip.conf. Der Eintrag
Code:
 externhost=checkip.dyndns.org
war falsch. Das ACK ging deshalb immer an checkip.dyndns.org anstatt an meine IP-Adresse.
Ich habe mir jetzt bei dyndns.org einen Hostnamen geben lassen, der auf meine IP Adresse zeigt.
Nun lautet der Eintrag in sip.conf
Code:
externhost=<mein-name>.dyndns.org
.
Dorthin schickt sipgate nun das ACK. Dieser Name muss in die täglich wechselnde IP Adresse umgesetzt werden, die ich von meinem Provider zugewiesen bekomme. Dazu muss die IP Adresse bei dyndns.org jedes Mal, wenn meine IP Adresse wechselt aktualisiert werden. Das macht mein DSL Router.
Der sip.conf Eintrag muss mit externhost erfolgen, und nicht mit externip. externip wird wohl im Gegensatz zu externhost nur beim Reload aufgelöst und nicht nicht von Zeit zu Zeit aktualisiert.

Ich hoffe ich habe das richtig verstanden und wiedergegeben. Ansonsten freue ich mich über euere Anmerkungen
 
Mist, da hätte man als Außenstehender auch drauf kommen können, wenn man mal geschaut hätte wer auf checkip.dyndns.org antwortet. Naja schön das es jetzt funktioniert.
 
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.