- Mitglied seit
- 7 Jun 2005
- Beiträge
- 323
- Punkte für Reaktionen
- 0
- Punkte
- 16
Hallo Leute!
Nach langen Tests mit SIPGATE habe ich einige Accounts auf 1und1 umstellen wollen. Dabei stoße ich nun auf ein neues Verhalten und brauche da mal eure Unterstützung.
Wenn ich Asterisk starte und die Nummer 333333 (so nenne ich sie mal hier) von extern anrufe, kann ich mir ein Wavefile zum testen anhören.
Wenn ich dann ein "module reload" absetze, erhalte ich bei erneutem Anruf ein "SIP/2.0 403 Forbidden.". Das will einfach nicht in meinen Kopf.
Kann da mal jemand drüber schauen:
Das ist der Anruf nach dem start von Asterisk:
Das sieht für mich erstmal Bilderbuchmäßig aus.
Jetzt:
Neuer Anruf:
Hier meine sip.conf:
Und die extensions.ael:
Das Wetter erzeuge ich per cron (wen es interessiert):
Ich konnte dieses Verhalten durch Ändern der erlaubten Codecs provozieren. Nun gehts aber beim frisch gestarteten * aber nach einiger Zeit eben nicht mehr.
Was ändert sich hier über die Zeit?
Nach langen Tests mit SIPGATE habe ich einige Accounts auf 1und1 umstellen wollen. Dabei stoße ich nun auf ein neues Verhalten und brauche da mal eure Unterstützung.
Wenn ich Asterisk starte und die Nummer 333333 (so nenne ich sie mal hier) von extern anrufe, kann ich mir ein Wavefile zum testen anhören.
Wenn ich dann ein "module reload" absetze, erhalte ich bei erneutem Anruf ein "SIP/2.0 403 Forbidden.". Das will einfach nicht in meinen Kopf.
Kann da mal jemand drüber schauen:
Das ist der Anruf nach dem start von Asterisk:
Code:
U 212.227.19.130:5060 -> 192.168.110.1:5061
[COLOR="Red"]INVITE[/COLOR] sip:[email protected]:5061 SIP/2.0.
Record-Route: <sip:212.227.19.130;lr=on;ftag=69655858>.
Record-Route: <sip:212.227.19.141;lr=on;ftag=69655858>.
Record-Route: <sip:212.227.19.131;lr=on;ftag=69655858>.
Record-Route: <sip:217.188.58.181;lr=on;ftag=69655858>.
Via: SIP/2.0/UDP 212.227.19.130;branch=z9hG4bK6511.f8be6c8546017afb0a74b34167d436ed.1.
Via: SIP/2.0/UDP 212.227.19.141;branch=z9hG4bK6511.f8be6c8546017afb0a74b34167d436ed.1.
Via: SIP/2.0/UDP 212.227.19.131;branch=z9hG4bK6511.b5990015.0.
Via: SIP/2.0/UDP 217.188.58.181;branch=z9hG4bK6511.b5990015.0.
Via: SIP/2.0/UDP 1und1-3.sip.mgc.voip.telefonica.de:5060;received=193.189.245.202;branch=z9hG4bKterm-afd85b-+49XXXX333333-+499999999-52832.
From: +499999999 <sip:[email protected]:5060;user=phone>;tag=69655858.
To: +49XXXX333333 <sip:[email protected]:5060;user=phone>.
Call-ID: 6941a789-e80d144-569dc033-212a@1und1-3.sip.mgc.voip.telefonica.de.
CSeq: 1 [COLOR="#ff0000"]INVITE[/COLOR].
Max-Forwards: 12.
Supported: timer.
Session-Expires: 1800.
Min-SE: 1800.
Contact: +499999999 <sip:[email protected]:5060;transport=udp>.
Allow: INVITE,ACK,PRACK,SUBSCRIBE,BYE,CANCEL,NOTIFY,INFO,REFER,UPDATE.
P-Asserted-Identity: +4999999999 <sip:[email protected];user=phone>.
Content-Type: application/sdp.
Content-Length: 677.
.
v=0.
o=- 1825333 0 IN IP4 62.53.226.61.
s=Cisco SDP 0.
c=IN IP4 62.53.226.61.
t=0 0.
m
#
U 192.168.110.1:5061 -> 212.227.19.130:5060
[COLOR="#ff0000"]SIP/2.0 100 Trying[/COLOR].
Via: SIP/2.0/UDP 212.227.19.130;branch=z9hG4bK6511.f8be6c8546017afb0a74b34167d436ed.1;received=212.227.19.130.
Via: SIP/2.0/UDP 212.227.19.141;branch=z9hG4bK6511.f8be6c8546017afb0a74b34167d436ed.1.
Via: SIP/2.0/UDP 212.227.19.131;branch=z9hG4bK6511.b5990015.0.
Via: SIP/2.0/UDP 217.188.58.181;branch=z9hG4bK6511.b5990015.0.
Via: SIP/2.0/UDP 1und1-3.sip.mgc.voip.telefonica.de:5060;received=193.189.245.202;branch=z9hG4bKterm-afd85b-+49XXXX333333-+499999999-52832.
Record-Route: <sip:212.227.19.130;lr=on;ftag=69655858>.
Record-Route: <sip:212.227.19.141;lr=on;ftag=69655858>.
Record-Route: <sip:212.227.19.131;lr=on;ftag=69655858>.
Record-Route: <sip:217.188.58.181;lr=on;ftag=69655858>.
From: +499999999 <sip:[email protected]:5060;user=phone>;tag=69655858.
To: +49XXXX333333 <sip:[email protected]:5060;user=phone>.
Call-ID: 6941a789-e80d144-569dc033-212a@1und1-3.sip.mgc.voip.telefonica.de.
CSeq: 1 [COLOR="#ff0000"]INVITE[/COLOR].
User-Agent: AVM FRITZ!Box WLAN 7990 77.04.96 (Jan 27 2011).
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.
Supported: replaces.
Contact: <sip:[email protected]:5061>.
Content-Length: 0.
.
#
U 192.168.110.1:5061 -> 212.227.19.130:5060
[COLOR="#ff0000"]SIP/2.0 200 OK.[/COLOR]
Via: SIP/2.0/UDP 212.227.19.130;branch=z9hG4bK6511.f8be6c8546017afb0a74b34167d436ed.1;received=212.227.19.130.
Via: SIP/2.0/UDP 212.227.19.141;branch=z9hG4bK6511.f8be6c8546017afb0a74b34167d436ed.1.
Via: SIP/2.0/UDP 212.227.19.131;branch=z9hG4bK6511.b5990015.0.
Via: SIP/2.0/UDP 217.188.58.181;branch=z9hG4bK6511.b5990015.0.
Via: SIP/2.0/UDP 1und1-3.sip.mgc.voip.telefonica.de:5060;received=193.189.245.202;branch=z9hG4bKterm-afd85b-+49XXXX333333-+499999999-52832.
Record-Route: <sip:212.227.19.130;lr=on;ftag=69655858>.
Record-Route: <sip:212.227.19.141;lr=on;ftag=69655858>.
Record-Route: <sip:212.227.19.131;lr=on;ftag=69655858>.
Record-Route: <sip:217.188.58.181;lr=on;ftag=69655858>.
From: +499999999 <sip:[email protected]:5060;user=phone>;tag=69655858.
To: +49XXXX333333 <sip:[email protected]:5060;user=phone>;tag=as2ce63b51.
Call-ID: 6941a789-e80d144-569dc033-212a@1und1-3.sip.mgc.voip.telefonica.de.
CSeq: 1 [COLOR="#ff0000"]INVITE[/COLOR].
User-Agent: AVM FRITZ!Box WLAN 7990 77.04.96 (Jan 27 2011).
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.
Supported: replaces.
Contact: <sip:[email protected]:5061>.
Content-Type: application/sdp.
Content-Length: 284.
.
v=0.
o=root 11892 11892 IN IP4 89.14.197.95.
s=session.
c=IN IP4 89.14.197.95.
t=0 0.
m=audio 16588 RTP/AVP 8 0 3 99.
a=rtpmap:8 PCMA/8000.
a=rtpmap:0 PCMU/8000.
a=rtpmap:3 GSM/8000.
a=rtpmap:99 telephone-event/8000.
a=fmtp:99 0-16.
a=s
#
U 212.227.19.130:5060 -> 192.168.110.1:5061
[COLOR="#ff0000"]ACK [/COLOR]sip:[email protected]:5061 SIP/2.0.
Record-Route: <sip:212.227.19.130;lr=on;ftag=69655858>.
Record-Route: <sip:212.227.19.141;lr=on;ftag=69655858>.
Record-Route: <sip:212.227.19.131;lr=on;ftag=69655858>.
Record-Route: <sip:217.188.58.181;lr=on;ftag=69655858>.
Via: SIP/2.0/UDP 212.227.19.130;branch=z9hG4bK6511.f8be6c8546017afb0a74b34167d436ed.3.
Via: SIP/2.0/UDP 212.227.19.141;branch=z9hG4bK6511.f8be6c8546017afb0a74b34167d436ed.3.
Via: SIP/2.0/UDP 212.227.19.131;branch=z9hG4bK6511.b5990015.2.
Via: SIP/2.0/UDP 217.188.58.181;branch=z9hG4bK6511.b5990015.2.
Via: SIP/2.0/UDP 1und1-3.sip.mgc.voip.telefonica.de:5060;received=193.189.245.202;branch=z9hG4bKterm-afd85b-+49XXXX333333-+499999999-8084.
From: +499999999 <sip:[email protected]:5060;user=phone>;tag=69655858.
To: +49XXXX333333 <sip:[email protected]:5060;user=phone>;tag=as2ce63b51.
Call-ID: 6941a789-e80d144-569dc033-212a@1und1-3.sip.mgc.voip.telefonica.de.
CSeq: 1 [COLOR="#ff0000"]ACK[/COLOR].
Max-Forwards: 12.
Content-Length: 0.
P-hint: rr-enforced.
.
#
U 212.227.19.130:5060 -> 192.168.110.1:5061
[COLOR="#ff0000"]BYE[/COLOR] sip:[email protected]:5061 SIP/2.0.
Record-Route: <sip:212.227.19.130;lr=on;ftag=69655858>.
Record-Route: <sip:212.227.19.141;lr=on;ftag=69655858>.
Record-Route: <sip:212.227.19.131;lr=on;ftag=69655858>.
Record-Route: <sip:217.188.58.181;lr=on;ftag=69655858>.
Via: SIP/2.0/UDP 212.227.19.130;branch=z9hG4bK3511.64417f7065461695c195bfea00d73b54.0.
Via: SIP/2.0/UDP 212.227.19.141;branch=z9hG4bK3511.64417f7065461695c195bfea00d73b54.0.
Via: SIP/2.0/UDP 212.227.19.131;branch=z9hG4bK3511.410ef666.0.
Via: SIP/2.0/UDP 217.188.58.181;branch=z9hG4bK3511.410ef666.0.
Via: SIP/2.0/UDP 1und1-3.sip.mgc.voip.telefonica.de:5060;received=193.189.245.202;branch=z9hG4bKterm-afd85b-+49XXXX333333-+499999999-78794.
From: +499999999 <sip:[email protected]:5060;user=phone>;tag=69655858.
To: +49XXXX333333 <sip:[email protected]:5060;user=phone>;tag=as2ce63b51.
Call-ID: 6941a789-e80d144-569dc033-212a@1und1-3.sip.mgc.voip.telefonica.de.
CSeq: 2 [COLOR="#ff0000"]BYE[/COLOR].
Max-Forwards: 66.
Supported: timer.
Content-Length: 0.
P-hint: rr-enforced.
.
#
U 192.168.110.1:5061 -> 212.227.19.130:5060
[COLOR="#ff0000"]SIP/2.0 200 OK[/COLOR].
Via: SIP/2.0/UDP 212.227.19.130;branch=z9hG4bK3511.64417f7065461695c195bfea00d73b54.0;received=212.227.19.130.
Via: SIP/2.0/UDP 212.227.19.141;branch=z9hG4bK3511.64417f7065461695c195bfea00d73b54.0.
Via: SIP/2.0/UDP 212.227.19.131;branch=z9hG4bK3511.410ef666.0.
Via: SIP/2.0/UDP 217.188.58.181;branch=z9hG4bK3511.410ef666.0.
Via: SIP/2.0/UDP 1und1-3.sip.mgc.voip.telefonica.de:5060;received=193.189.245.202;branch=z9hG4bKterm-afd85b-+49XXXX333333-+499999999-78794.
Record-Route: <sip:212.227.19.130;lr=on;ftag=69655858>.
Record-Route: <sip:212.227.19.141;lr=on;ftag=69655858>.
Record-Route: <sip:212.227.19.131;lr=on;ftag=69655858>.
Record-Route: <sip:217.188.58.181;lr=on;ftag=69655858>.
From: +499999999 <sip:[email protected]:5060;user=phone>;tag=69655858.
To: +49XXXX333333 <sip:[email protected]:5060;user=phone>;tag=as2ce63b51.
Call-ID: 6941a789-e80d144-569dc033-212a@1und1-3.sip.mgc.voip.telefonica.de.
CSeq: 2 [COLOR="#ff0000"]BYE[/COLOR].
User-Agent: AVM FRITZ!Box WLAN 7990 77.04.96 (Jan 27 2011).
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.
Supported: replaces.
Contact: <sip:[email protected]:5061>.
Content-Length: 0.
.
Das sieht für mich erstmal Bilderbuchmäßig aus.
Jetzt:
Code:
Connected to Asterisk 1.4.21.2~dfsg-3ubuntu2.1 currently running on homeserver (pid = 11892)
homeserver*CLI> [COLOR="#ff0000"]module reload[/COLOR]
Neuer Anruf:
Code:
root@homeserver:~ # ngrep -W byline port 5061
interface: eth0
filter: (ip or ip6) and ( port 5061 )
U 212.227.19.136:5060 -> 192.168.110.1:5061
[COLOR="#ff0000"]INVITE[/COLOR] sip:[email protected]:5061 SIP/2.0.
Record-Route: <sip:212.227.19.136;lr=on;ftag=986443090>.
Record-Route: <sip:212.227.19.143;lr=on;ftag=986443090>.
Record-Route: <sip:212.227.19.131;lr=on;ftag=986443090>.
Record-Route: <sip:195.71.47.146;lr=on;ftag=986443090>.
Via: SIP/2.0/UDP 212.227.19.136;branch=z9hG4bK1e96.d5245e7848fa4530588c8c00aae68f32.1.
Via: SIP/2.0/UDP 212.227.19.143;branch=z9hG4bK1e96.d5245e7848fa4530588c8c00aae68f32.1.
Via: SIP/2.0/UDP 212.227.19.131;branch=z9hG4bK1e96.4f7a7fd.0.
Via: SIP/2.0/UDP 195.71.47.146;branch=z9hG4bK1e96.4f7a7fd.0.
Via: SIP/2.0/UDP 1und1-8.sip.mgc.voip.telefonica.de:5060;received=193.189.245.204;branch=z9hG4bKterm-b5b394-+49XXXX333333-+499999999-60885.
From: +499999999 <sip:[email protected]:5060;user=phone>;tag=986443090.
To: +49XXXX333333 <sip:[email protected]:5060;user=phone>.
Call-ID: 5b8bcb1d-615daebe-7d6f6877-40d5@1und1-8.sip.mgc.voip.telefonica.de.
CSeq: 1 [COLOR="Red"]INVITE[/COLOR].
Max-Forwards: 12.
Supported: timer.
Session-Expires: 1800.
Min-SE: 1800.
Contact: +499999999 <sip:[email protected]:5060;transport=udp>.
Allow: INVITE,ACK,PRACK,SUBSCRIBE,BYE,CANCEL,NOTIFY,INFO,REFER,UPDATE.
P-Asserted-Identity: +4999999999 <sip:[email protected];user=phone>.
Content-Type: application/sdp.
Content-Length: 677.
.
v=0.
o=- 1825489 0 IN IP4 62.53.226.61.
s=Cisco SDP 0.
c=IN IP4 62.53.226.61.
t=0 0.
#
U 192.168.110.1:5061 -> 212.227.19.136:5060
[COLOR="#ff0000"][B]SIP/2.0 403 Forbidden[/B][/COLOR].
Via: SIP/2.0/UDP 212.227.19.136;branch=z9hG4bK1e96.d5245e7848fa4530588c8c00aae68f32.1;received=212.227.19.136.
Via: SIP/2.0/UDP 212.227.19.143;branch=z9hG4bK1e96.d5245e7848fa4530588c8c00aae68f32.1.
Via: SIP/2.0/UDP 212.227.19.131;branch=z9hG4bK1e96.4f7a7fd.0.
Via: SIP/2.0/UDP 195.71.47.146;branch=z9hG4bK1e96.4f7a7fd.0.
Via: SIP/2.0/UDP 1und1-8.sip.mgc.voip.telefonica.de:5060;received=193.189.245.204;branch=z9hG4bKterm-b5b394-+49XXXX333333-+499999999-60885.
From: +499999999 <sip:[email protected]:5060;user=phone>;tag=986443090.
To: +49XXXX333333 <sip:[email protected]:5060;user=phone>;tag=as7473f2f8.
Call-ID: 5b8bcb1d-615daebe-7d6f6877-40d5@1und1-8.sip.mgc.voip.telefonica.de.
CSeq: 1 INVITE.
User-Agent: AVM FRITZ!Box WLAN 7990 77.04.96 (Jan 27 2011).
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.
Supported: replaces.
Content-Length: 0.
.
#
U 212.227.19.136:5060 -> 192.168.110.1:5061
[COLOR="#ff0000"]ACK[/COLOR] sip:[email protected]:5061 SIP/2.0.
Record-Route: <sip:212.227.19.136;lr=on;ftag=986443090>.
Via: SIP/2.0/UDP 212.227.19.136;branch=z9hG4bK1e96.d5245e7848fa4530588c8c00aae68f32.1.
Via: SIP/2.0/UDP 212.227.19.143;branch=z9hG4bK1e96.d5245e7848fa4530588c8c00aae68f32.1.
From: +499999999 <sip:[email protected]:5060;user=phone>;tag=986443090.
Call-ID: 5b8bcb1d-615daebe-7d6f6877-40d5@1und1-8.sip.mgc.voip.telefonica.de.
To: +49XXXX333333 <sip:[email protected]:5060;user=phone>;tag=as7473f2f8.
CSeq: 1 ACK.
Max-Forwards: 69.
User-Agent: OpenSER (1.3.4-tls (i386/linux)).
Content-Length: 0.
.
root@homeserver:~ #
Hier meine sip.conf:
Code:
[general]
context=incomming
bindport=5061
bindaddr=0.0.0.0
localnet=192.168.0.0/255.255.0.0
tos_sip=cs3
tos_audio=ef
tos_video=af41
externip=dyndns
externrefresh=10
qualify=200
srvlookup=yes
language=de
;callerid=meimi039
useragent=AVM FRITZ!Box WLAN 7990 77.04.96 (Jan 27 2011) ; just kidding
nat=yes
allowguest=no
; type=peer
insecure=port,invite
;--------------------------------------------------------------------
register => 49XXXX111111:[email protected]/111111
register => 49XXXX222222:[email protected]/222222
register => 49XXXX333333:[email protected]/333333
register => 9444444:[email protected]/444444
;####################################################################
[111111]
; 1und1-main 0XXXX111111
context=incomming
type=peer
username=49XXXX111111
secret=passwort
host=sip.1und1.de
fromuser=49XXXX111111
fromdomain=sip.1und1.de
canreinvite=no
dtmfmode=auto
disallow=all
allow=alaw
allow=ulaw
allow=gsm
;allow=ilbc
;allow=g726
;allow=g729
nat=yes
insecure=port,invite
tos=0x18
[222222]
; 1und1-main 0XXXX222222
context=incomming
type=peer
username=49XXXX222222
secret=passwort
host=sip.1und1.de
fromuser=49XXXX222222
fromdomain=sip.1und1.de
canreinvite=no
dtmfmode=auto
disallow=all
allow=alaw
allow=ulaw
allow=gsm
;allow=ilbc
;allow=g726
;allow=g729
nat=yes
insecure=port,invite
tos=0x18
[333333]
; 1und1-main 0XXXX333333
context=incomming
type=peer
username=49XXXX333333
secret=passwort
host=sip.1und1.de
fromuser=49XXXX333333
fromdomain=sip.1und1.de
canreinvite=no
dtmfmode=auto
disallow=all
allow=alaw
allow=ulaw
allow=gsm
;allow=ilbc
;allow=g726
;allow=g729
nat=yes
insecure=port,invite
tos=0x18
[444444]
; 0XXXX444444 bei sipgate
context=incomming
type=peer
username=9444444
secret=passwort
host=sipgate.de
fromuser=9444444
fromdomain=sipgate.de
canreinvite=no
dtmfmode=rfc2833
disallow=all
allow=ulaw
nat=yes
insecure=port,invite
tos=0x18
Und die extensions.ael:
Code:
context incomming {
333333 => {
NoOp(TestMSN incomming);
Answer();
Wait(1);
Playback(/tmp/weather);
Wait(2);
Hangup();
}
}
Das Wetter erzeuge ich per cron (wen es interessiert):
Code:
wget -qO - 'http://www.tagesschau.de/mobil/index-mobilWetter.jsp?pic=0' | grep -vE '<|>|/|&' | nice -n 19 espeak --stdin -vde+m4 -p 30 -s 140 -w /tmp/w.wav ; nice -n 19 sox /tmp/w.wav -r 8000 /tmp/weather.wav dither ; chmod 777 /tmp/weather.wav ; rm /tmp/w.wav
Ich konnte dieses Verhalten durch Ändern der erlaubten Codecs provozieren. Nun gehts aber beim frisch gestarteten * aber nach einiger Zeit eben nicht mehr.
Was ändert sich hier über die Zeit?
Zuletzt bearbeitet: