[Gelöst] Telekom All IP - Asterisk - Lancom

Noch mal: sip show peers ist da irrelevant, das zeigt nur, dass eine IP erreichbar ist.
Relevant ist hier aber sip show registry.
Darüber hinaus: CALLERID(name) und CALLERID(num) müssen natürlich der registrierten Rufnummer entsprechen (also zum Anschluss gehören).
Ausserdem darf natürlich die gewählte Rufnummer (07xxx99xxx) nicht für abgehende Anrufe gesperrt sein.
Um hier aber genauer herauszufinden, warum der Anruf schiefgeht, bräuchten wir dann schon einen sip debug (sip set debug peer ART), der uns die Pakete während eines abgehenden Anrufes zeigt. Da wird dann ablesbar werden, was der Telekom nicht gefällt ...
 
Nochmals aktueller Stand:

Ruf kommt rein
Abgehende Anrufe produzieren einen Fehler, siehe Thread zuvor


Code:
Privilege escalation protection disabled!
See https://wiki.asterisk.org/wiki/x/1gKfAQ for more details.
Asterisk 11.7.0~dfsg-1ubuntu1, Copyright (C) 1999 - 2013 Digium, Inc. and others.
Created by Mark Spencer <[email protected]>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 11.7.0~dfsg-1ubuntu1 currently running on bnta (pid = 3953)
bnta*CLI> sip show registry
Host                                    dnsmgr Username       Refresh State                Reg.Time
tel.t-online.de:5060                    Y      07xxx978aaaa       465 Registered           Sun, 13 Sep 2015 09:32:01
tel.t-online.de:5060                    Y      07xxx978bbbb       465 Registered           Sun, 13 Sep 2015 09:32:01
tel.t-online.de:5060                    Y      07xxx978cccc       465 Registered           Sun, 13 Sep 2015 09:32:01
3 SIP registrations.
bnta*CLI>


Reliably Transmitting (no NAT) to 217.0.23.100:5060:
OPTIONS sip:tel.t-online.de SIP/2.0
Via: SIP/2.0/UDP 192.168.134.11:5060;branch=z9hG4bK6dec8027
Max-Forwards: 70
From: "asterisk" <sip:[email protected]>;tag=as2769496e
To: <sip:tel.t-online.de>
Contact: <sip:[email protected]:5060>
Call-ID: [email protected]:5060
CSeq: 102 OPTIONS
User-Agent: Asterisk PBX 11.7.0~dfsg-1ubuntu1
Date: Sun, 13 Sep 2015 07:41:15 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Length: 0


---

<--- SIP read from UDP:217.0.23.100:5060 --->
SIP/2.0 403 Forbidden
Via: SIP/2.0/UDP 192.168.134.11:5060;branch=z9hG4bK6dec8027
To: <sip:tel.t-online.de>;tag=h7g4Esbg_m6k6je67sx36rc9lpquxs94o7w7fcqyq
From: "asterisk" <sip:[email protected]>;tag=as2769496e
Call-ID: [email protected]:5060
CSeq: 102 OPTIONS
Content-Length: 0

<------------->
--- (7 headers 0 lines) ---
Really destroying SIP dialog '[email protected]:5060' Method: OPTIONS
Reliably Transmitting (NAT) to 217.0.23.100:5060:
OPTIONS sip:tel.t-online.de SIP/2.0
Via: SIP/2.0/UDP 192.168.134.11:5060;branch=z9hG4bK0cfd2782;rport
Max-Forwards: 70
From: "asterisk" <sip:[email protected]>;tag=as6137afa4
To: <sip:tel.t-online.de>
Contact: <sip:[email protected]:5060>
Call-ID: [email protected]:5060
CSeq: 102 OPTIONS
User-Agent: Asterisk PBX 11.7.0~dfsg-1ubuntu1
Date: Sun, 13 Sep 2015 07:41:16 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Length: 0


---

<--- SIP read from UDP:217.0.23.100:5060 --->
SIP/2.0 403 Forbidden
Via: SIP/2.0/UDP 192.168.134.11:5060;received=<offizielle IP>;rport=5060;branch=z9hG4bK0cfd2782
To: <sip:tel.t-online.de>;tag=h7g4Esbg_klvgk68q9ix3x63ty8tu8cf9um3zfk8e
From: "asterisk" <sip:[email protected]>;tag=as6137afa4
Call-ID: [email protected]:5060
CSeq: 102 OPTIONS
Content-Length: 0

<------------->
--- (7 headers 0 lines) ---
Really destroying SIP dialog '[email protected]:5060' Method: OPTIONS
Reliably Transmitting (no NAT) to 217.0.23.100:5060:
OPTIONS sip:tel.t-online.de SIP/2.0
Via: SIP/2.0/UDP 192.168.134.11:5060;branch=z9hG4bK2ef1a0d6
Max-Forwards: 70
From: "asterisk" <sip:[email protected]>;tag=as565b5d12
To: <sip:tel.t-online.de>
Contact: <sip:[email protected]:5060>
Call-ID: [email protected]:5060
CSeq: 102 OPTIONS
User-Agent: Asterisk PBX 11.7.0~dfsg-1ubuntu1
Date: Sun, 13 Sep 2015 07:41:17 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Length: 0


---
Reliably Transmitting (no NAT) to 217.0.23.100:5060:
OPTIONS sip:tel.t-online.de SIP/2.0
Via: SIP/2.0/UDP 192.168.134.11:5060;branch=z9hG4bK34ad9dc8
Max-Forwards: 70
From: "asterisk" <sip:[email protected]>;tag=as38181883
To: <sip:tel.t-online.de>
Contact: <sip:[email protected]:5060>
Call-ID: [email protected]:5060
CSeq: 102 OPTIONS
User-Agent: Asterisk PBX 11.7.0~dfsg-1ubuntu1
Date: Sun, 13 Sep 2015 07:41:17 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Length: 0


---

<--- SIP read from UDP:217.0.23.100:5060 --->
SIP/2.0 403 Forbidden
Via: SIP/2.0/UDP 192.168.134.11:5060;branch=z9hG4bK2ef1a0d6
To: <sip:tel.t-online.de>;tag=h7g4Esbg_sqyvykeiumlt61u99dmufwmfo29cojjv
From: "asterisk" <sip:[email protected]>;tag=as565b5d12
Call-ID: [email protected]:5060
CSeq: 102 OPTIONS
Content-Length: 0

<------------->
--- (7 headers 0 lines) ---
Really destroying SIP dialog '[email protected]:5060' Method: OPTIONS

<--- SIP read from UDP:217.0.23.100:5060 --->
SIP/2.0 403 Forbidden
Via: SIP/2.0/UDP 192.168.134.11:5060;branch=z9hG4bK34ad9dc8
To: <sip:tel.t-online.de>;tag=h7g4Esbg_o33frp6efe5zlliy43lmgnr67ozkcm13
From: "asterisk" <sip:[email protected]>;tag=as38181883
Call-ID: [email protected]:5060
CSeq: 102 OPTIONS
Content-Length: 0

<------------->
--- (7 headers 0 lines) ---
Really destroying SIP dialog '[email protected]:5060' Method: OPTIONS
  == Using SIP RTP CoS mark 5
    -- Executing [007xxx99xxx@from-sip:1] Goto("SIP/14-00000024", "20") in new stack
    -- Goto (from-sip,007xxx99xxx,20)
    -- Executing [007xxx99xxx@from-sip:20] Set("SIP/14-00000024", "CALLERID(name)=07xxx978bbbb") in new stack
    -- Executing [007xxx99xxx@from-sip:21] Set("SIP/14-00000024", "CALLERID(name)=07xxx978bbbb") in new stack
    -- Executing [007xxx99xxx@from-sip:22] Dial("SIP/14-00000024", "sip/07xxx99xxx@ART,180,tr") in new stack
  == Using SIP RTP CoS mark 5
Audio is at 27276
Adding codec 100003 (ulaw) to SDP
Adding codec 100004 (alaw) to SDP
Adding non-codec 0x1 (telephone-event) to SDP
Reliably Transmitting (no NAT) to 217.0.23.100:5060:
INVITE sip:[email protected] SIP/2.0
Via: SIP/2.0/UDP 192.168.134.11:5060;branch=z9hG4bK3c4bd008
Max-Forwards: 70
From: "07xxx978bbbb" <sip:14@07xxx978bbbb>;tag=as1ec7c32d
To: <sip:[email protected]>
Contact: <sip:[email protected]:5060>
Call-ID: 16ff021e5707c464759a999b3d0d5860@07xxx978bbbb
CSeq: 102 INVITE
User-Agent: Asterisk PBX 11.7.0~dfsg-1ubuntu1
Date: Sun, 13 Sep 2015 07:41:27 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Type: application/sdp
Content-Length: 275

v=0
o=root 389220612 389220612 IN IP4 192.168.134.11
s=Asterisk PBX 11.7.0~dfsg-1ubuntu1
c=IN IP4 192.168.134.11
t=0 0
m=audio 27276 RTP/AVP 0 8 101
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv

---
    -- Called sip/07xxx99xxx@ART

<--- SIP read from UDP:217.0.23.100:5060 --->
SIP/2.0 403 Forbidden
Via: SIP/2.0/UDP 192.168.134.11:5060;branch=z9hG4bK3c4bd008
To: <sip:[email protected]>;tag=h7g4Esbg_lr4zmkpk9ktze3o1opkyd15pz9ujv4wl
From: "07xxx978bbbb" <sip:14@07xxx978bbbb>;tag=as1ec7c32d
Call-ID: 16ff021e5707c464759a999b3d0d5860@07xxx978bbbb
CSeq: 102 INVITE
Content-Length: 0

<------------->
--- (7 headers 0 lines) ---
Transmitting (no NAT) to 217.0.23.100:5060:
ACK sip:[email protected] SIP/2.0
Via: SIP/2.0/UDP 192.168.134.11:5060;branch=z9hG4bK3c4bd008
Max-Forwards: 70
From: "07xxx978bbbb" <sip:14@07xxx978bbbb>;tag=as1ec7c32d
To: <sip:[email protected]>;tag=h7g4Esbg_lr4zmkpk9ktze3o1opkyd15pz9ujv4wl
Contact: <sip:[email protected]:5060>
Call-ID: 16ff021e5707c464759a999b3d0d5860@07xxx978bbbb
CSeq: 102 ACK
User-Agent: Asterisk PBX 11.7.0~dfsg-1ubuntu1
Content-Length: 0


---
[Sep 13 09:41:27] WARNING[3986][C-0000000a]: chan_sip.c:22991 handle_response_invite: Received response: "Forbidden" from '"07xxx978bbbb" <sip:14@07xxx978bbbb>;tag=as1ec7c32d'
Scheduling destruction of SIP dialog '16ff021e5707c464759a999b3d0d5860@07xxx978bbbb' in 6400 ms (Method: INVITE)
  == Everyone is busy/congested at this time (1:0/0/1)
    -- Auto fallthrough, channel 'SIP/14-00000024' status is 'CHANUNAVAIL'
    -- Executing [h@from-sip:1] NoOp("SIP/14-00000024", "FaxStatus : ") in new stack
    -- Executing [h@from-sip:2] NoOp("SIP/14-00000024", "FaxStatusString : ") in new stack
    -- Executing [h@from-sip:3] NoOp("SIP/14-00000024", "FaxError : ") in new stack
    -- Executing [h@from-sip:4] NoOp("SIP/14-00000024", "RemoteStationID : ") in new stack
    -- Executing [h@from-sip:5] NoOp("SIP/14-00000024", "FaxPages : ") in new stack
    -- Executing [h@from-sip:6] NoOp("SIP/14-00000024", "FaxBitRate : ") in new stack
    -- Executing [h@from-sip:7] NoOp("SIP/14-00000024", "FaxResolution : ") in new stack
    -- Executing [h@from-sip:8] System("SIP/14-00000024", "sudo sh "" "" "" /") in new stack
Really destroying SIP dialog '16ff021e5707c464759a999b3d0d5860@07xxx978bbbb' Method: INVITE
 
Ja, es ist wie von rentier-s vermutet: Da fehlen die localnet, respektive externip/externhost- Einstellungen im general-Teil der sip.conf.
Im Contact-Header wird eine Interne IP
Code:
Contact: <sip:[email protected]:5060>
übertragen, das weißt die Telekom ab, da Sie darüber keine Kommunikation aufbauen kann.
Desweiteren scheint im general-Teil der sip.conf nat=no zu stehen /erkennbar hier:
Code:
Reliably Transmitting (no NAT) to 217.0.23.100:5060:
), das sollte auf
Code:
nat=force_rport,comedia
stehen.
Darüber hinaus ist zu vermuten, dass die stunaddr-Einstellung nutzlos ist, da das Feature in Asterisk 1.8 ausgebaut und IMHO bis heute nicht RFC-kompatibel reaktiviert wurde ...
 
Code:
bnta*CLI> sip set debug peer ART
SIP Debugging Enabled for IP: 217.0.23.100
Really destroying SIP dialog '[email protected]' Method: REGISTER
Really destroying SIP dialog '[email protected]' Method: REGISTER
Really destroying SIP dialog '[email protected]' Method: REGISTER
       > Saved useragent "Yealink SIP-T48G 35.80.0.70" for peer 22
       > Saved useragent "Linphone/3.0.0 MX Video (eXosip2/3.1.0)" for peer 10
Reliably Transmitting (NAT) to 217.0.23.100:5060:
OPTIONS sip:tel.t-online.de SIP/2.0
Via: SIP/2.0/UDP <offizielle IP>:5060;branch=z9hG4bK4f79591c;rport
Max-Forwards: 70
From: "asterisk" <sip:asterisk@<offizielle IP>>;tag=as552df8b6
To: <sip:tel.t-online.de>
Contact: <sip:asterisk@<offizielle IP>:5060>
Call-ID: 571f1cc3492fadcc5e1a1de76802b9f0@<offizielle IP>:5060
CSeq: 102 OPTIONS
User-Agent: Asterisk PBX 11.7.0~dfsg-1ubuntu1
Date: Sun, 13 Sep 2015 17:22:00 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Length: 0


---
Reliably Transmitting (NAT) to 217.0.23.100:5060:
OPTIONS sip:tel.t-online.de SIP/2.0
Via: SIP/2.0/UDP <offizielle IP>:5060;branch=z9hG4bK4f363a79;rport
Max-Forwards: 70
From: "asterisk" <sip:asterisk@<offizielle IP>>;tag=as4254777f
To: <sip:tel.t-online.de>
Contact: <sip:asterisk@<offizielle IP>:5060>
Call-ID: 3a095cbe558a4eb716f14ef0554b4b36@<offizielle IP>:5060
CSeq: 102 OPTIONS
User-Agent: Asterisk PBX 11.7.0~dfsg-1ubuntu1
Date: Sun, 13 Sep 2015 17:22:00 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Length: 0


---
Reliably Transmitting (NAT) to 217.0.23.100:5060:
OPTIONS sip:tel.t-online.de SIP/2.0
Via: SIP/2.0/UDP <offizielle IP>:5060;branch=z9hG4bK7dc2d227;rport
Max-Forwards: 70
From: "asterisk" <sip:asterisk@<offizielle IP>>;tag=as7fea9470
To: <sip:tel.t-online.de>
Contact: <sip:asterisk@<offizielle IP>:5060>
Call-ID: 235b3eaf429efd0304a74ac937a2d5c5@<offizielle IP>:5060
CSeq: 102 OPTIONS
User-Agent: Asterisk PBX 11.7.0~dfsg-1ubuntu1
Date: Sun, 13 Sep 2015 17:22:00 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Length: 0


---
Reliably Transmitting (NAT) to 217.0.23.100:5060:
OPTIONS sip:tel.t-online.de SIP/2.0
Via: SIP/2.0/UDP <offizielle IP>:5060;branch=z9hG4bK1141252f;rport
Max-Forwards: 70
From: "asterisk" <sip:asterisk@<offizielle IP>>;tag=as44e3d900
To: <sip:tel.t-online.de>
Contact: <sip:asterisk@<offizielle IP>:5060>
Call-ID: 1d3c6cb46247a5df294a1ca81fc65982@<offizielle IP>:5060
CSeq: 102 OPTIONS
User-Agent: Asterisk PBX 11.7.0~dfsg-1ubuntu1
Date: Sun, 13 Sep 2015 17:22:00 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Length: 0


---

<--- SIP read from UDP:217.0.23.100:5060 --->
SIP/2.0 403 Forbidden
Via: SIP/2.0/UDP <offizielle IP>:5060;received=<offizielle IP>;rport=21862;branch=z9hG4bK4f79591c
To: <sip:tel.t-online.de>;tag=h7g4Esbg_yl9mh4uwfb1hrrnhpsultzbnzidi9fdg
From: "asterisk" <sip:asterisk@<offizielle IP>>;tag=as552df8b6
Call-ID: 571f1cc3492fadcc5e1a1de76802b9f0@<offizielle IP>:5060
CSeq: 102 OPTIONS
Content-Length: 0

<------------->
--- (7 headers 0 lines) ---
Really destroying SIP dialog '571f1cc3492fadcc5e1a1de76802b9f0@<offizielle IP>:5060' Method: OPTIONS

<--- SIP read from UDP:217.0.23.100:5060 --->
SIP/2.0 403 Forbidden
Via: SIP/2.0/UDP <offizielle IP>:5060;received=<offizielle IP>;rport=21862;branch=z9hG4bK4f363a79
To: <sip:tel.t-online.de>;tag=h7g4Esbg_y9rfcozpv4b75tnrbip8w321ibgnx4ku
From: "asterisk" <sip:asterisk@<offizielle IP>>;tag=as4254777f
Call-ID: 3a095cbe558a4eb716f14ef0554b4b36@<offizielle IP>:5060
CSeq: 102 OPTIONS
Content-Length: 0

<------------->
--- (7 headers 0 lines) ---
Really destroying SIP dialog '3a095cbe558a4eb716f14ef0554b4b36@<offizielle IP>:5060' Method: OPTIONS

<--- SIP read from UDP:217.0.23.100:5060 --->
SIP/2.0 403 Forbidden
Via: SIP/2.0/UDP <offizielle IP>:5060;received=<offizielle IP>;rport=21862;branch=z9hG4bK7dc2d227
To: <sip:tel.t-online.de>;tag=h7g4Esbg_54xgm69vm4ehdqgnho1dbefxoqbq8joi
From: "asterisk" <sip:asterisk@<offizielle IP>>;tag=as7fea9470
Call-ID: 235b3eaf429efd0304a74ac937a2d5c5@<offizielle IP>:5060
CSeq: 102 OPTIONS
Content-Length: 0

<------------->
--- (7 headers 0 lines) ---
Really destroying SIP dialog '235b3eaf429efd0304a74ac937a2d5c5@<offizielle IP>:5060' Method: OPTIONS

<--- SIP read from UDP:217.0.23.100:5060 --->
SIP/2.0 403 Forbidden
Via: SIP/2.0/UDP <offizielle IP>:5060;received=<offizielle IP>;rport=21862;branch=z9hG4bK1141252f
To: <sip:tel.t-online.de>;tag=h7g4Esbg_353iltxzvw1jkrvgf2wu3t32vzobbvrs
From: "asterisk" <sip:asterisk@<offizielle IP>>;tag=as44e3d900
Call-ID: 1d3c6cb46247a5df294a1ca81fc65982@<offizielle IP>:5060
CSeq: 102 OPTIONS
Content-Length: 0

<------------->
--- (7 headers 0 lines) ---
Really destroying SIP dialog '1d3c6cb46247a5df294a1ca81fc65982@<offizielle IP>:5060' Method: OPTIONS
  == Using SIP RTP CoS mark 5
    -- Executing [007xxx99xxx@from-sip:1] Goto("SIP/14-00000000", "20") in new stack
    -- Goto (from-sip,007xxx99xxx,20)
    -- Executing [007xxx99xxx@from-sip:20] Set("SIP/14-00000000", "CALLERID(name)=07xxx978xxxx") in new stack
    -- Executing [007xxx99xxx@from-sip:21] Set("SIP/14-00000000", "CALLERID(name)=07xxx978xxxx") in new stack
    -- Executing [007xxx99xxx@from-sip:22] Dial("SIP/14-00000000", "sip/07xxx99xxx@ART,180,tr") in new stack
  == Using SIP RTP CoS mark 5
Audio is at 21896
Adding codec 100003 (ulaw) to SDP
Adding codec 100004 (alaw) to SDP
Adding non-codec 0x1 (telephone-event) to SDP
Reliably Transmitting (NAT) to 217.0.23.100:5060:
INVITE sip:[email protected] SIP/2.0
Via: SIP/2.0/UDP <offizielle IP>:5060;branch=z9hG4bK11c1e3b9;rport
Max-Forwards: 70
From: "07xxx978xxxx" <sip:14@07xxx978xxxx>;tag=as434cc914
To: <sip:[email protected]>
Contact: <sip:14@<offizielle IP>:5060>
Call-ID: 091d57c66ff6ba3e26bfd83a661c3c5d@07xxx978xxxx
CSeq: 102 INVITE
User-Agent: Asterisk PBX 11.7.0~dfsg-1ubuntu1
Date: Sun, 13 Sep 2015 17:22:17 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Type: application/sdp
Content-Length: 271

v=0
o=root 1903267029 1903267029 IN IP4 <offizielle IP>
s=Asterisk PBX 11.7.0~dfsg-1ubuntu1
c=IN IP4 <offizielle IP>
t=0 0
m=audio 21896 RTP/AVP 0 8 101
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv

---
    -- Called sip/07xxx99xxx@ART

<--- SIP read from UDP:217.0.23.100:5060 --->
SIP/2.0 403 Forbidden
Via: SIP/2.0/UDP <offizielle IP>:5060;received=<offizielle IP>;rport=21862;branch=z9hG4bK11c1e3b9
To: <sip:[email protected]>;tag=h7g4Esbg_gw38gwlf6tn3vsbrhfqjxxokur7wt56v
From: "07xxx978xxxx" <sip:14@07xxx978xxxx>;tag=as434cc914
Call-ID: 091d57c66ff6ba3e26bfd83a661c3c5d@07xxx978xxxx
CSeq: 102 INVITE
Content-Length: 0

<------------->
--- (7 headers 0 lines) ---
Transmitting (NAT) to 217.0.23.100:5060:
ACK sip:[email protected] SIP/2.0
Via: SIP/2.0/UDP <offizielle IP>:5060;branch=z9hG4bK11c1e3b9;rport
Max-Forwards: 70
From: "07xxx978xxxx" <sip:14@07xxx978xxxx>;tag=as434cc914
To: <sip:[email protected]>;tag=h7g4Esbg_gw38gwlf6tn3vsbrhfqjxxokur7wt56v
Contact: <sip:14@<offizielle IP>:5060>
Call-ID: 091d57c66ff6ba3e26bfd83a661c3c5d@07xxx978xxxx
CSeq: 102 ACK
User-Agent: Asterisk PBX 11.7.0~dfsg-1ubuntu1
Content-Length: 0

Darf ich Dich bitten nochmals drüber zu schauen.
Ich meine nun alles entsprechend korrigiert zu haben, aber leider immer noch Forbidden


---
[Sep 13 19:22:18] WARNING[14033][C-00000000]: chan_sip.c:22991 handle_response_invite: Received response: "Forbidden" from '"07xxx978xxxx" <sip:14@07xxx978xxxx>;tag=as434cc914'
Scheduling destruction of SIP dialog '091d57c66ff6ba3e26bfd83a661c3c5d@07xxx978xxxx' in 59008 ms (Method: INVITE)
  == Everyone is busy/congested at this time (1:0/0/1)
    -- Auto fallthrough, channel 'SIP/14-00000000' status is 'CHANUNAVAIL'
    -- Executing [h@from-sip:1] NoOp("SIP/14-00000000", "FaxStatus : ") in new stack
    -- Executing [h@from-sip:2] NoOp("SIP/14-00000000", "FaxStatusString : ") in new stack
    -- Executing [h@from-sip:3] NoOp("SIP/14-00000000", "FaxError : ") in new stack
    -- Executing [h@from-sip:4] NoOp("SIP/14-00000000", "RemoteStationID : ") in new stack
    -- Executing [h@from-sip:5] NoOp("SIP/14-00000000", "FaxPages : ") in new stack
    -- Executing [h@from-sip:6] NoOp("SIP/14-00000000", "FaxBitRate : ") in new stack
    -- Executing [h@from-sip:7] NoOp("SIP/14-00000000", "FaxResolution : ") in new stack
    -- Executing [h@from-sip:8] System("SIP/14-00000000", "sudo sh "" "" "" /") in new stack
 
Code:
    -- Executing [007xxx99xxx@from-sip:1] Goto("SIP/14-00000000", "20") in new stack
    -- Goto (from-sip,007xxx99xxx,20)
    -- Executing [007xxx99xxx@from-sip:20] Set("SIP/14-00000000", "CALLERID(name)=07xxx978xxxx") in new stack
    -- Executing [007xxx99xxx@from-sip:21] Set("SIP/14-00000000", "CALLERID(name)=07xxx978xxxx") in new stack
    -- Executing [007xxx99xxx@from-sip:22] Dial("SIP/14-00000000", "sip/07xxx99xxx@ART,180,tr") in new stack

Das habe ich allerdings vorhin übersehen: Da wird zweimal CALLERID(name) gesetzt, statt einmal CALLERID(num) und einmal CALLERID(name) (der angegebene Wert stimmt für beide).
Wenn Du das anpasst, sollte es nunmehr klappen.

Eines noch. Der Debug zeigt auch, dass die Telekom die OPTIONS-Requests ablehnt. Um hier sauber zu sein, bitte in der sip.conf noch
Code:
qualify=no
statt
Code:
qualify=yes
beim peer ART setzen, das ist aber nur Kosmetik.
 
Danke für deine Geduld und Hilfe.

Leider noch nicht das gewünschte Ergebnis.

Nach Änderungen an der Extension.conf und Neutstart des Asterisk, hat die Registrierung zunächst nicht funktioniert.
Erst nach Neustart des Lancom Routers ging wieder alles normal. Das muß ich mal beobachten, aber hier scheine ich auch noch ein Problem zu haben.

Die Änderungen habe ich gemacht, das forbidden bleibt aber stehen.

Code:
bnta*CLI> sip show registry
Host                                    dnsmgr Username       Refresh State                Reg.Time
tel.t-online.de:5060                    Y      07xxx978aaaa       465 Registered           Mon, 14 Sep 2015 09:23:15
tel.t-online.de:5060                    Y      07xxx978bbbb       465 Registered           Mon, 14 Sep 2015 09:23:16
tel.t-online.de:5060                    Y      07xxx978cccc       465 Registered           Mon, 14 Sep 2015 09:23:18
3 SIP registrations.
  == Using SIP RTP CoS mark 5
    -- Executing [007xxx99118@from-sip:1] Goto("SIP/14-00000002", "20") in new stack
    -- Goto (from-sip,007xxx99118,20)
    -- Executing [007xxx99118@from-sip:20] Set("SIP/14-00000002", "CALLERID(name)=07xxx978bbbb") in new stack
    -- Executing [007xxx99118@from-sip:21] Set("SIP/14-00000002", "CALLERID(num)=07xxx978bbbb") in new stack
    -- Executing [007xxx99118@from-sip:22] Dial("SIP/14-00000002", "sip/07xxx99118@ART,180,tr") in new stack
  == Using SIP RTP CoS mark 5
    -- Called sip/07xxx99118@ART
[Sep 14 09:23:54] WARNING[19230][C-00000001]: chan_sip.c:22991 handle_response_invite: Received response: "Forbidden" from '"07xxx978bbbb" <sip:07xxx978bbbb@07xxx978bbbb>;tag=as2a53ae03'
  == Everyone is busy/congested at this time (1:0/0/1)
    -- Auto fallthrough, channel 'SIP/14-00000002' status is 'CHANUNAVAIL'
    -- Executing [h@from-sip:1] NoOp("SIP/14-00000002", "FaxStatus : ") in new stack
    -- Executing [h@from-sip:2] NoOp("SIP/14-00000002", "FaxStatusString : ") in new stack
    -- Executing [h@from-sip:3] NoOp("SIP/14-00000002", "FaxError : ") in new stack
    -- Executing [h@from-sip:4] NoOp("SIP/14-00000002", "RemoteStationID : ") in new stack
    -- Executing [h@from-sip:5] NoOp("SIP/14-00000002", "FaxPages : ") in new stack
    -- Executing [h@from-sip:6] NoOp("SIP/14-00000002", "FaxBitRate : ") in new stack
    -- Executing [h@from-sip:7] NoOp("SIP/14-00000002", "FaxResolution : ") in new stack
    -- Executing [h@from-sip:8] System("SIP/14-00000002", "sudo sh "" "" "" /") in new stack
bnta*CLI> sip set debug peer ART
SIP Debugging Enabled for IP: 217.0.23.100
Reliably Transmitting (NAT) to 217.0.23.100:5060:
OPTIONS sip:tel.t-online.de SIP/2.0
Via: SIP/2.0/UDP <offizielle IP>:5060;branch=z9hG4bK1e376916;rport
Max-Forwards: 70
From: "asterisk" <sip:asterisk@<offizielle IP>>;tag=as28bd902d
To: <sip:tel.t-online.de>
Contact: <sip:asterisk@<offizielle IP>:5060>
Call-ID: 598d611e6891fbd12c669d75337f5f69@<offizielle IP>:5060
CSeq: 102 OPTIONS
User-Agent: Asterisk PBX 11.7.0~dfsg-1ubuntu1
Date: Mon, 14 Sep 2015 07:25:01 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Length: 0


---
Reliably Transmitting (NAT) to 217.0.23.100:5060:
OPTIONS sip:tel.t-online.de SIP/2.0
Via: SIP/2.0/UDP <offizielle IP>:5060;branch=z9hG4bK3285f574;rport
Max-Forwards: 70
From: "asterisk" <sip:asterisk@<offizielle IP>>;tag=as48366d20
To: <sip:tel.t-online.de>
Contact: <sip:asterisk@<offizielle IP>:5060>
Call-ID: 532d10a50819ab2855ad6e1869469e09@<offizielle IP>:5060
CSeq: 102 OPTIONS
User-Agent: Asterisk PBX 11.7.0~dfsg-1ubuntu1
Date: Mon, 14 Sep 2015 07:25:01 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Length: 0


---

<--- SIP read from UDP:217.0.23.100:5060 --->
SIP/2.0 403 Forbidden
Via: SIP/2.0/UDP <offizielle IP>:5060;received=<offizielle IP>;rport=21862;branch=z9hG4bK1e376916
To: <sip:tel.t-online.de>;tag=h7g4Esbg_tlvxeqx58cz9r1ofhifheuwez8wityq4
From: "asterisk" <sip:asterisk@<offizielle IP>>;tag=as28bd902d
Call-ID: 598d611e6891fbd12c669d75337f5f69@<offizielle IP>:5060
CSeq: 102 OPTIONS
Content-Length: 0

<------------->
--- (7 headers 0 lines) ---
Really destroying SIP dialog '598d611e6891fbd12c669d75337f5f69@<offizielle IP>:5060' Method: OPTIONS

<--- SIP read from UDP:217.0.23.100:5060 --->
SIP/2.0 403 Forbidden
Via: SIP/2.0/UDP <offizielle IP>:5060;received=<offizielle IP>;rport=21862;branch=z9hG4bK3285f574
To: <sip:tel.t-online.de>;tag=h7g4Esbg_2yqvzsnpizon5uz4hyodtu7bwfit274c
From: "asterisk" <sip:asterisk@<offizielle IP>>;tag=as48366d20
Call-ID: 532d10a50819ab2855ad6e1869469e09@<offizielle IP>:5060
CSeq: 102 OPTIONS
Content-Length: 0

<------------->
--- (7 headers 0 lines) ---
Really destroying SIP dialog '532d10a50819ab2855ad6e1869469e09@<offizielle IP>:5060' Method: OPTIONS
       > Saved useragent "Yealink SIP-W52P 25.50.0.20" for peer 24
Reliably Transmitting (NAT) to 217.0.23.100:5060:
OPTIONS sip:tel.t-online.de SIP/2.0
Via: SIP/2.0/UDP <offizielle IP>:5060;branch=z9hG4bK7b701d78;rport
Max-Forwards: 70
From: "asterisk" <sip:asterisk@<offizielle IP>>;tag=as5bddcff3
To: <sip:tel.t-online.de>
Contact: <sip:asterisk@<offizielle IP>:5060>
Call-ID: 7c578f004afbc15858f424c0604fe7cd@<offizielle IP>:5060
CSeq: 102 OPTIONS
User-Agent: Asterisk PBX 11.7.0~dfsg-1ubuntu1
Date: Mon, 14 Sep 2015 07:25:13 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Length: 0


---

<--- SIP read from UDP:217.0.23.100:5060 --->
SIP/2.0 403 Forbidden
Via: SIP/2.0/UDP <offizielle IP>:5060;received=<offizielle IP>;rport=21862;branch=z9hG4bK7b701d78
To: <sip:tel.t-online.de>;tag=h7g4Esbg_c4c56r865wbfu1km673gqkl1glwhp4tt
From: "asterisk" <sip:asterisk@<offizielle IP>>;tag=as5bddcff3
Call-ID: 7c578f004afbc15858f424c0604fe7cd@<offizielle IP>:5060
CSeq: 102 OPTIONS
Content-Length: 0

<------------->
--- (7 headers 0 lines) ---
Really destroying SIP dialog '7c578f004afbc15858f424c0604fe7cd@<offizielle IP>:5060' Method: OPTIONS
  == Using SIP RTP CoS mark 5
    -- Executing [007xxx99118@from-sip:1] Goto("SIP/14-00000004", "20") in new stack
    -- Goto (from-sip,007xxx99118,20)
    -- Executing [007xxx99118@from-sip:20] Set("SIP/14-00000004", "CALLERID(name)=07xxx978bbbb") in new stack
    -- Executing [007xxx99118@from-sip:21] Set("SIP/14-00000004", "CALLERID(num)=07xxx978bbbb") in new stack
    -- Executing [007xxx99118@from-sip:22] Dial("SIP/14-00000004", "sip/07xxx99118@ART,180,tr") in new stack
  == Using SIP RTP CoS mark 5
Audio is at 38558
Adding codec 100003 (ulaw) to SDP
Adding codec 100004 (alaw) to SDP
Adding non-codec 0x1 (telephone-event) to SDP
Reliably Transmitting (NAT) to 217.0.23.100:5060:
INVITE sip:[email protected] SIP/2.0
Via: SIP/2.0/UDP <offizielle IP>:5060;branch=z9hG4bK396b3fce;rport
Max-Forwards: 70
From: "07xxx978bbbb" <sip:07xxx978bbbb@07xxx978bbbb>;tag=as2143d436
To: <sip:[email protected]>
Contact: <sip:07xxx978bbbb@<offizielle IP>:5060>
Call-ID: 77a6bd7928acb7ce6e79337623839347@07xxx978bbbb
CSeq: 102 INVITE
User-Agent: Asterisk PBX 11.7.0~dfsg-1ubuntu1
Date: Mon, 14 Sep 2015 07:25:24 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Type: application/sdp
Content-Length: 269

v=0
o=root 719275724 719275724 IN IP4 <offizielle IP>
s=Asterisk PBX 11.7.0~dfsg-1ubuntu1
c=IN IP4 <offizielle IP>
t=0 0
m=audio 38558 RTP/AVP 0 8 101
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv

---
    -- Called sip/07xxx99118@ART

<--- SIP read from UDP:217.0.23.100:5060 --->
SIP/2.0 403 Forbidden
Via: SIP/2.0/UDP <offizielle IP>:5060;received=<offizielle IP>;rport=21862;branch=z9hG4bK396b3fce
To: <sip:[email protected]>;tag=h7g4Esbg_2iedzqgzljxfpp7erzbqwqwfh8hd5lb5
From: "07xxx978bbbb" <sip:07xxx978bbbb@07xxx978bbbb>;tag=as2143d436
Call-ID: 77a6bd7928acb7ce6e79337623839347@07xxx978bbbb
CSeq: 102 INVITE
Content-Length: 0

<------------->
--- (7 headers 0 lines) ---
Transmitting (NAT) to 217.0.23.100:5060:
ACK sip:[email protected] SIP/2.0
Via: SIP/2.0/UDP <offizielle IP>:5060;branch=z9hG4bK396b3fce;rport
Max-Forwards: 70
From: "07xxx978bbbb" <sip:07xxx978bbbb@07xxx978bbbb>;tag=as2143d436
To: <sip:[email protected]>;tag=h7g4Esbg_2iedzqgzljxfpp7erzbqwqwfh8hd5lb5
Contact: <sip:07xxx978bbbb@<offizielle IP>:5060>
Call-ID: 77a6bd7928acb7ce6e79337623839347@07xxx978bbbb
CSeq: 102 ACK
User-Agent: Asterisk PBX 11.7.0~dfsg-1ubuntu1
Content-Length: 0


---
[Sep 14 09:25:24] WARNING[19230][C-00000002]: chan_sip.c:22991 handle_response_invite: Received response: "Forbidden" from '"07xxx978bbbb" <sip:07xxx978bbbb@07xxx978bbbb>;tag=as2143d436'
Scheduling destruction of SIP dialog '77a6bd7928acb7ce6e79337623839347@07xxx978bbbb' in 32000 ms (Method: INVITE)
  == Everyone is busy/congested at this time (1:0/0/1)
    -- Auto fallthrough, channel 'SIP/14-00000004' status is 'CHANUNAVAIL'
    -- Executing [h@from-sip:1] NoOp("SIP/14-00000004", "FaxStatus : ") in new stack
    -- Executing [h@from-sip:2] NoOp("SIP/14-00000004", "FaxStatusString : ") in new stack
    -- Executing [h@from-sip:3] NoOp("SIP/14-00000004", "FaxError : ") in new stack
    -- Executing [h@from-sip:4] NoOp("SIP/14-00000004", "RemoteStationID : ") in new stack
    -- Executing [h@from-sip:5] NoOp("SIP/14-00000004", "FaxPages : ") in new stack
    -- Executing [h@from-sip:6] NoOp("SIP/14-00000004", "FaxBitRate : ") in new stack
    -- Executing [h@from-sip:7] NoOp("SIP/14-00000004", "FaxResolution : ") in new stack
    -- Executing [h@from-sip:8] System("SIP/14-00000004", "sudo sh "" "" "" /") in new stack
bnta*CLI>
 
Hi,
der Sip-Server der t-com will seit ca. 2Wochen als CALLERID zwingend +49xxxxx, haben...

grüße nitana.
 
Grad denk ich mir, wie kann denn
From: "07xxx978bbbb" <sip:07xxx978bbbb@07xxx978bbbb>
zustande kommen. Da sind noch zwei Fehlerchen in der sip.conf, ändere fromdomain in tel.t-online.de und username heißt jetzt defaultuser.
 
:D EINEN SCHRITT WEITER

Super -nun kann ich rauswählen und mein Handy klingelt schon mal, allerdings ist noch keine Sprache möglich.
Beide Richtungen scheinen tod zu sein!
 
Na hoffentlich spuckt Dir da der Router jetzt nicht in die Suppe. Hast Du ein Forwarding für den UDP Bereich aus der rtp.conf eingerichtet und ALG aus?

Kannst Du ein Trace am WAN Interface erzeugen? Dann könnten wir das mit einem SIP Debug von Asterisk vergleichen, ob der Router da noch irgendwas verbiegt. Der SDP Teil des INVITE hätte ja ganz brauchbar ausgesehen.

Oder, sofern das ALG was taugt, selbiges doch mal einschalten, Portforwarding aus und in Asterisk externip/externhost wieder raus nehmen.
 
Oder, sofern das ALG was taugt, selbiges doch mal einschalten, Portforwarding aus und in Asterisk externip/externhost wieder raus nehmen.

Gemacht und es geht!

Vielen Dank für Eure Hilfe.
Hätte ich alleine nie zum Laufen bekommen, auch weil hier so viel unterschiedliches an Infos im Netz herumschwirrt.

Ihr habe aus dem sip debug alles rausgelesen! Ich habe mir das angeschaut aber das erschliesst sich mir nicht wirklich
Gibt es zu dem Sip debug eine für Dummy´s verständliche Anleitung?
 
So schwer zu lesen kann's ja eigentlich nicht sein, wenn das sogar eine Blondine kann ;-)

Geschrieben steht das alles in RFC3261. Bei VoIP Problemen sind meistens nur die INVITE Pakete interessant, ggf. die Antwort darauf wie in diesem Fall. Beim Rufaufbau mit Authentifizierung (idR. abgehend) schickt Asterisk ein INVITE an den Proxy, wenn dieser grundsätzlich damit einverstanden ist, wird er mit einem Authentification Request antworten, worauf hin Asterisk das INVITE ergänzt um die Authentifizierung noch einmal wiederholt. In Deinem Fall antwortete der Proxy aber gleich mit Forbidden, dh. irgendwas musste schon an den grundsätzlichen Daten zum Rufaufbau falsch sein.

Schau Dir in Ruhe ein INVITE eines funktionierenden Anrufs an, insbesondere From, Contact und To Header, dort wirst Du die einzelnen Parameter aus der sip.conf und extensions.conf wiederfinden.

Etwas kryptischer zu lesen ist der SDP Body und die RTP Aushandlung im OK Paket. Da kann man zB. rauslesen, ob beide Seiten die korrekte IP-Adresse als Audio-Ziel angeben. Außerdem sieht man die verfügbaren Codecs und welcher davon letztlich zum Einsatz kommt, wichtig bei "408 not acceptable here" Fehlern. In Deinem Fall ist es in Ordnung, dass Asterisk die lokale IP-Adresse angibt, das ALG schreibt das sauber um in die öffentliche Adresse und NAT Ports, das funktioniert nicht immer so einwandfrei.

Mit vereinten Kräften gelöst könntest Du den Thread Titel bitte um das entsprechende Prefix ergänzen, dazu den 1. Beitrag bearbeiten und auf Erweitert.
 

Neueste Beiträge

Statistik des Forums

Themen
244,872
Beiträge
2,219,913
Mitglieder
371,594
Neuestes Mitglied
AA-Idealbau
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.