Sehr langer Verbindungsaufbau bei Telekom all IP

mp3joker

Neuer User
Mitglied seit
17 Dez 2006
Beiträge
56
Punkte für Reaktionen
0
Punkte
6
Hallo zusammen,

Leider habe ich seit ca. 2 Monaten einen sehr langer Verbindungsaufbau bei meinem Telekom all IP Anschluss den ich mit Asterisk 18.2.2 betreibe:

es dauert erst ca. 15s dann kommen die roten Infos im Asterisk und es beginnt zu klingeln am Telefon

warum muss erst ein Wechsel von native rtp zu simple bridge erfolgen bevor der verbindungsaufbau erfolgt und das auch noch mit einer 15s Unterbrechung.

-- Executing [08003301000@tkom_out:1] NoOp("PJSIP/sip1-00000006", ""0123456789" <0123456789>") in new stack
-- Executing [08003301000@tkom_out:2] Dial("PJSIP/sip1-00000006", "PJSIP/08003301000@telekom_in,240") in new stack
-- Called PJSIP/08003301000@telekom_in
-- PJSIP/telekom_in-00000007 answered PJSIP/sip1-00000006
-- Channel PJSIP/telekom_in-00000007 joined 'simple_bridge' basic-bridge <a616f163-6e7e-49a4-8b24-27d25ab8381a>
-- Channel PJSIP/sip1-00000006 joined 'simple_bridge' basic-bridge <a616f163-6e7e-49a4-8b24-27d25ab8381a>
-- Channel PJSIP/sip1-00000006 left 'native_rtp' basic-bridge <a616f163-6e7e-49a4-8b24-27d25ab8381a>
-- Channel PJSIP/telekom_in-00000007 left 'native_rtp' basic-bridge <a616f163-6e7e-49a4-8b24-27d25ab8381a>
== Spawn extension (tkom_out, 08003301000, 2) exited non-zero on 'PJSIP/sip1-00000006'



wäre für einen Tipp sehr dankbar da ich schon einige Stunden in das Problem gesteckt habe und mir auch immer noch absolut nicht klar ist was eigentlich das Problem ist.
 
Dann poste doch mal deine PJSIP-Konfig und relevante Ausschnitte aus der extensions.conf.
 
Hallo, Hier meine Config´s der Asterisk ist einzig und alleine für die Weiterleitung von und zur Telekom sonst macht er nix.

und es betrifft aber nur die abgehenden Anrufe eingehend funktioniert ohne jeglichen Zeit Verzug

Code:
[global]
type = global
user_agent=Asterisk PBX
language = de
endpoint_identifier_order = ip,username

[transport-udp]
type = transport
protocol = udp
bind = 172.20.1.21:5061
local_net = 172.20.0.0/20
domain = xyz1234.sn.mynetname.net
;external_media_address = $ExterneIP
;external_signaling_address = $ExterneIP
;external_signaling_port = 5061




;---------------------------------------------------------------------------
[sip1]
type = endpoint
transport = transport-udp
context = tkom_out
disallow = all
allow = alaw,g722
outbound_proxy = sip:172.20.1.20:5060\;lr
aors=sip1_aor
timers = no
rtp_symmetric = yes
force_rport = yes
ice_support = yes
rewrite_contact = yes
direct_media = no

[sip1_aor]
type=aor
contact=sip:172.20.1.20:5060


[sip1_identify]
type = identify
endpoint = sip1
match = 172.20.1.20






;----------------------telekom_in--------------------------------------------

[telekom_in_auth]
type = auth
auth_type = userpass
password = 12345678:[email protected]
username = 0123491380
realm = tel.t-online.de

[telekom_in]
type = endpoint
transport = transport-udp
context = incoming
disallow = all
allow = alaw,g722
outbound_auth = telekom_in_auth
outbound_proxy = sip:[email protected]\;lr
aors = telekom_123491380_aor
from_domain = tel.t-online.de
timers = no
rtp_symmetric = yes
force_rport = yes
ice_support = yes
rewrite_contact = yes
direct_media = no

[telekom_in_aor]
type = aor
contact = sip:[email protected]

[telekom_in_identify]
type = identify
endpoint = telekom_in
match = 217.0.0.0/13


;---------------91380---------------------


[telekom_0123491380_reg]
type = registration
transport = transport-udp
outbound_auth = telekom_123491380_auth
outbound_proxy = sip:[email protected]\;lr
server_uri = sip:tel.t-online.de
client_uri = sip:[email protected]
contact_user = 0123491380
retry_interval = 60
forbidden_retry_interval = 300
expiration = 480
auth_rejection_permanent = false

[telekom_123491380_auth]
type = auth
auth_type = userpass
password = 12345678:[email protected]
username = 0123491380
realm = tel.t-online.de

[telekom_123491380]
type = endpoint
transport = transport-udp
context = incoming
disallow = all
allow = alaw,g722
outbound_auth = telekom_123491380_auth
outbound_proxy = sip:[email protected]\;lr
aors = telekom_123491380_aor
callerid = 0123491380
from_user = 0123491380
from_domain = tel.t-online.de
timers = no
rtp_symmetric = yes
force_rport = yes
ice_support = yes
rewrite_contact = yes
direct_media = no

[telekom_123491380_aor]
type = aor
contact = sip:[email protected]




;---------------91381---------------------

[telekom_0123491381_reg]
type = registration
transport = transport-udp
outbound_auth = telekom_123491381_auth
outbound_proxy = sip:[email protected]\;lr
server_uri = sip:tel.t-online.de
client_uri = sip:[email protected]
contact_user = 0123491381
retry_interval = 60
forbidden_retry_interval = 300
expiration = 480
auth_rejection_permanent = false

[telekom_123491381_auth]
type = auth
auth_type = userpass
password = 12345678:[email protected]
username = 0123491381
realm = tel.t-online.de

[telekom_123491381]
type = endpoint
transport = transport-udp
context = incoming
disallow = all
allow = alaw,g722
outbound_auth = telekom_123491381_auth
outbound_proxy = sip:[email protected]\;lr
aors = telekom_123491381_aor
callerid = 0123491381
from_user = 0123491381
from_domain = tel.t-online.de
timers = no
rtp_symmetric = yes
force_rport = yes
ice_support = yes
rewrite_contact = yes
direct_media = no

[telekom_123491381_aor]
type = aor
contact = sip:[email protected]




;---------------91382---------------------


[telekom_0123491382_reg]
type = registration
transport = transport-udp
outbound_auth = telekom_123491382_auth
outbound_proxy = sip:[email protected]\;lr
server_uri = sip:tel.t-online.de
client_uri = sip:[email protected]
contact_user = 0123491382
retry_interval = 60
forbidden_retry_interval = 300
expiration = 480
auth_rejection_permanent = false

[telekom_123491382_auth]
type = auth
auth_type = userpass
password = 12345678:[email protected]
username = 0123491382
realm = tel.t-online.de

[telekom_123491382]
type = endpoint
transport = transport-udp
context = incoming
disallow = all
allow = alaw,g722
outbound_auth = telekom_123491382_auth
outbound_proxy = sip:[email protected]\;lr
aors = telekom_123491382_aor
;callerid = 0123491382
from_user = 0123491382
from_domain = tel.t-online.de
timers = no
rtp_symmetric = yes
force_rport = yes
ice_support = yes
rewrite_contact = yes
direct_media = no

[telekom_123491382_aor]
type = aor
contact = sip:[email protected]



;---------------2649---------------------


[telekom_012342649_reg]
type = registration
transport = transport-udp
outbound_auth = telekom_12342649_auth
outbound_proxy = sip:[email protected]\;lr
server_uri = sip:tel.t-online.de
client_uri = sip:[email protected]
contact_user = 012342649
retry_interval = 60
forbidden_retry_interval = 300
expiration = 480
auth_rejection_permanent = false

[telekom_12342649_auth]
type = auth
auth_type = userpass
password = 12345678:[email protected]
username = 012342649
realm = tel.t-online.de

[telekom_12342649]
type = endpoint
transport = transport-udp
context = incoming
disallow = all
allow = alaw,g722
outbound_auth = telekom_12342649_auth
outbound_proxy = sip:[email protected]\;lr
aors = telekom_12342649_aor
callerid = 012342649
from_user = 012342649
from_domain = tel.t-online.de
timers = no
rtp_symmetric = yes
force_rport = yes
ice_support = yes
rewrite_contact = yes
direct_media = no

[telekom_12342649_aor]
type = aor
contact = sip:[email protected]


;---------------697476---------------------


[telekom_01234697476_reg]
type = registration
transport = transport-udp
outbound_auth = telekom_1234697476_auth
outbound_proxy = sip:[email protected]\;lr
server_uri = sip:tel.t-online.de
client_uri = sip:[email protected]
contact_user = 01234697476
retry_interval = 60
forbidden_retry_interval = 300
expiration = 480
auth_rejection_permanent = false

[telekom_1234697476_auth]
type = auth
auth_type = userpass
password = 12345678:[email protected]
username = 01234697476
realm = tel.t-online.de

[telekom_1234697476]
type = endpoint
transport = transport-udp
context = incoming
disallow = all
allow = alaw,g722
outbound_auth = telekom_1234697476_auth
outbound_proxy = sip:[email protected]\;lr
aors = telekom_1234697476_aor
callerid = 01234697476
from_user = 01234697476
from_domain = tel.t-online.de
timers = no
rtp_symmetric = yes
force_rport = yes
ice_support = yes
rewrite_contact = yes
direct_media = no

[telekom_1234697476_aor]
type = aor
contact = sip:[email protected]


;---------------697478---------------------


[telekom_01234697478_reg]
type = registration
transport = transport-udp
outbound_auth = telekom_1234697478_auth
outbound_proxy = sip:[email protected]\;lr
server_uri = sip:tel.t-online.de
client_uri = sip:[email protected]
contact_user = 01234697478
retry_interval = 60
forbidden_retry_interval = 300
expiration = 480
auth_rejection_permanent = false

[telekom_1234697478_auth]
type = auth
auth_type = userpass
password = 12345678:[email protected]
username = 01234697478
realm = tel.t-online.de

[telekom_1234697478]
type = endpoint
transport = transport-udp
context = incoming
disallow = all
allow = alaw,g722
outbound_auth = telekom_1234697478_auth
outbound_proxy = sip:[email protected]\;lr
aors = telekom_1234697478_aor
callerid = 01234697478
from_user = 01234697478
from_domain = tel.t-online.de
timers = no
rtp_symmetric = yes
force_rport = yes
ice_support = yes
rewrite_contact = yes
direct_media = no

[telekom_1234697478_aor]
type = aor
contact = sip:[email protected]


;---------------6973409---------------------


[telekom_012346973409_reg]
type = registration
transport = transport-udp
outbound_auth = telekom_12346973409_auth
outbound_proxy = sip:[email protected]\;lr
server_uri = sip:tel.t-online.de
client_uri = sip:[email protected]
contact_user = 012346973409
retry_interval = 60
forbidden_retry_interval = 300
expiration = 480
auth_rejection_permanent = false

[telekom_12346973409_auth]
type = auth
auth_type = userpass
password = 12345678:[email protected]
username = 012346973409
realm = tel.t-online.de

[telekom_12346973409]
type = endpoint
transport = transport-udp
context = incoming
disallow = all
allow = alaw,g722
outbound_auth = telekom_12346973409_auth
outbound_proxy = sip:[email protected]\;lr
aors = telekom_12346973409_aor
callerid = 012346973409
from_user = 012346973409
from_domain = tel.t-online.de
timers = no
rtp_symmetric = yes
force_rport = yes
ice_support = yes
rewrite_contact = yes
direct_media = no

[telekom_12346973409_aor]
type = aor
contact = sip:[email protected]



;---------------6973410---------------------


[telekom_012346973410_reg]
type = registration
transport = transport-udp
outbound_auth = telekom_12346973410_auth
outbound_proxy = sip:[email protected]\;lr
server_uri = sip:tel.t-online.de
client_uri = sip:[email protected]
contact_user = 012346973410
retry_interval = 60
forbidden_retry_interval = 300
expiration = 480
auth_rejection_permanent = false

[telekom_12346973410_auth]
type = auth
auth_type = userpass
password = 12345678:[email protected]
username = 012346973410
realm = tel.t-online.de

[telekom_12346973410]
type = endpoint
transport = transport-udp
context = incoming
disallow = all
allow = alaw,g722
outbound_auth = telekom_12346973410_auth
outbound_proxy = sip:[email protected]\;lr
aors = telekom_12346973410_aor
callerid = 012346973410
from_user = 012346973410
from_domain = tel.t-online.de
timers = no
rtp_symmetric = yes
force_rport = yes
ice_support = yes
rewrite_contact = yes
direct_media = no

[telekom_12346973410_aor]
type = aor
contact = sip:[email protected]



;---------------6973411---------------------


[telekom_012346973411_reg]
type = registration
transport = transport-udp
outbound_auth = telekom_12346973411_auth
outbound_proxy = sip:[email protected]\;lr
server_uri = sip:tel.t-online.de
client_uri = sip:[email protected]
contact_user = 012346973411
retry_interval = 60
forbidden_retry_interval = 300
expiration = 480
auth_rejection_permanent = false

[telekom_12346973411_auth]
type = auth
auth_type = userpass
password = 12345678:[email protected]
username = 012346973411
realm = tel.t-online.de

[telekom_12346973411]
type = endpoint
transport = transport-udp
context = incoming
disallow = all
allow = alaw,g722
outbound_auth = telekom_12346973411_auth
outbound_proxy = sip:[email protected]\;lr
aors = telekom_12346973411_aor
callerid = 012346973411
from_user = 012346973411
from_domain = tel.t-online.de
timers = no
rtp_symmetric = yes
force_rport = yes
ice_support = yes
rewrite_contact = yes
direct_media = no

[telekom_12346973411_aor]
type = aor
contact = sip:[email protected]



;---------------6973412---------------------


[telekom_012346973412_reg]
type = registration
transport = transport-udp
outbound_auth = telekom_12346973412_auth
outbound_proxy = sip:[email protected]\;lr
server_uri = sip:tel.t-online.de
client_uri = sip:[email protected]
contact_user = 012346973412
retry_interval = 60
forbidden_retry_interval = 300
expiration = 480
auth_rejection_permanent = false

[telekom_12346973412_auth]
type = auth
auth_type = userpass
password = 12345678:[email protected]
username = 012346973412
realm = tel.t-online.de

[telekom_12346973412]
type = endpoint
transport = transport-udp
context = incoming
disallow = all
allow = alaw,g722
outbound_auth = telekom_12346973412_auth
outbound_proxy = sip:[email protected]\;lr
aors = telekom_12346973412_aor
callerid = 012346973412
from_user = 012346973412
from_domain = tel.t-online.de
timers = no
rtp_symmetric = yes
force_rport = yes
ice_support = yes
rewrite_contact = yes
direct_media = no

[telekom_12346973412_aor]
type = aor
contact = sip:[email protected]



;------------------------------------------------------------------------------

[19]
type=endpoint
transport=transport-udp
context=tkom_out_eigen_fax
disallow=all
allow=alaw
allow=ulaw
allow=g722
auth=19
aors=19

[19]
type=auth
auth_type=userpass
password=19
username=19

[19]
type=aor
max_contacts=3





Code:
;--------------------------------------------------------------------------------
;INFO
;--------------------------------------------------------------------------------
;X          matches any digit from 0-9
;Z          matches any digit form 1-9
;N          matches any digit from 2-9
;[1237-9]   matches any digit or letter in the brackets (in this example, ,2,3,7,8,9)
;.          wildcard, matches one or more characters
;!          wildcard, matches zero or more characters immediately
;--------------------------------------------------------------------------------





[incoming]

exten => 0123491380,1,NoOp(${CALLERID(all)})
exten => 0123491380,n,Dial(PJSIP/${EXTEN}@sip1,240)
exten => 0123491380,n,hangup

exten => 0123491381,1,NoOp(${CALLERID(all)})
exten => 0123491381,n,Dial(PJSIP/${EXTEN}@sip1,240)
exten => 0123491381,n,hangup

exten => 0123491382,1,NoOp(${CALLERID(all)})
exten => 0123491382,n,Dial(PJSIP/${EXTEN}@sip1,240)
;exten => 0123491382,n,Dial(PJSIP/19);(PJSIP/19,240,r)
exten => 0123491382,n,hangup

exten => 01234697476,1,NoOp(${CALLERID(all)})
exten => 01234697476,n,Dial(PJSIP/${EXTEN}@sip1,240)
exten => 01234697476,n,hangup

exten => 01234697478,1,NoOp(${CALLERID(all)})
exten => 01234697478,n,Dial(PJSIP/${EXTEN}@sip1,240)
exten => 01234697478,n,hangup

exten => 012342649,1,NoOp(${CALLERID(all)})
exten => 012342649,n,Dial(PJSIP/${EXTEN}@sip1,240)
exten => 012342649,n,hangup

exten => 012346973409,1,NoOp(${CALLERID(all)})
exten => 012346973409,n,Dial(PJSIP/${EXTEN}@sip1,240)
exten => 012346973409,n,hangup

exten => 012346973410,1,NoOp(${CALLERID(all)})
exten => 012346973410,n,Dial(PJSIP/${EXTEN}@sip1,240)
exten => 012346973410,n,hangup

exten => 012346973411,1,NoOp(${CALLERID(all)})
exten => 012346973411,n,Dial(PJSIP/${EXTEN}@sip1,240)
exten => 012346973411,n,hangup

exten => 012346973412,1,NoOp(${CALLERID(all)})
exten => 012346973412,n,Dial(PJSIP/${EXTEN}@sip1,240)
exten => 012346973412,n,hangup


[tkom_out]
exten => _X.,1,NoOp(${CALLERID(all)})
;exten => _0.,n,Set(CALLERID(name)=0123491381)
exten => _X.,n,Dial(PJSIP/${EXTEN}@telekom_in,240)
exten => _X.,n,Hangup()

[tkom_out_eigen_fax]
exten => _X.,1,NoOp(${CALLERID(all)})
exten => _X.,n,Set(CALLERID(name)=0123491382)
exten => _X.,n,Set(CALLERID(number)=0123491382)
exten => _X.,n,Dial(PJSIP/${EXTEN}@telekom_123491382,180)
exten => _X.,n,Hangup()


[app19]
include => tkom_out_eigen_fax
 
Zuletzt bearbeitet:
Hier findest Du eine sicher funktionierende Einstellung für Telekom AllIP. Außerdem die grundsätzliche NAT-Thematik beachten, falls NAT im Spiel sein sollte. Ansonsten hilft ein Trace weiter. Hier Hinweise zu Loggingeinstellungen und Traces in Asterisk. Außerdem DNS-Lookups tracen. Du musst beachten, dass Asterisk den RFC 5626 (flows) nicht wirklich unterstützt (auch wenn es vordergründig funktioniert - wenn es drauf ankommt, funktioniert es nämlich nicht (zumindest nicht out of the box)). Betrifft im Übrigen nicht nur die Telekom, sondern auch andere Provider, welche diesen üblicherweise unterstützen, wie Easybell z.B. Du musst hier z.B. diese zusätzliche Maßnahmen ergreifen, um etwas mehr Ausfallsicherheit zu haben (das deckt noch nicht alle Fehlerszenarien ab).
 
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.