Verbindungen brechen ab bzw nach iniger Zeit forbidden bei Telekom Voip

Guten Abend zusammen,
seit einiger Zeit gibt es Probleme mit 2 Telekom Anschlüßen. Beide sind in der MB-Anlage eingerichtet und funktionierten eine Zeit lang ohne Probleme. Seit ca 6 Wochen gibts aber Probleme.
Die Anlage läuft Virtuell. Das Internet wird über eine 7490 geregelt. Nach der 7490 kommt eine Firewall mit Portfreigabe.
Nach einem Reboot der MB kann man meistens einige Zeit telefonieren. nach Durchschnittlich 65 Minuten bricht dann die Verbindung ab. Manchmal nach 3 Minuten, manchmal aber auch erst anch 3 Stunden.
In einigen Fällen kann man direkt wieder extern Anrufen. Manchmal kommt direkt nach diesem Fehler beim wählen “forbidden” im Telefon.
Meistens kommt dieses forbidden auch, ohne ein vorheriges Telefonat.
Ein Reboot der Anlage hilft für maximal 36 Stunden.
Dieser Fehler tritt auch mit einer anderen Telefonanlage auf.
Beide funktionierten längere Zeit ohne Probleme.
An der Config und am Setup wurde nichts geändert.
Sipgate funktioniert korrekt.
Ausgabe “asterisk -r”
sip show registry
sipgate.de:5060 N 2421946e0 585 Registered Thu, 14 Jun 2018 22:48:42
tel.t-online.de:5060 N 081517466500 585 Registered Thu, 14 Jun 2018 22:48:47
tel.t-online.de:5060 N 081516663740 585 Registered Thu, 14 Jun 2018 22:48:46
tel.t-online.de:5060 N 081516663741 585 Registered Thu, 14 Jun 2018 22:48:46
tel.t-online.de:5060 N 081516663742 585 Registered Thu, 14 Jun 2018 22:48:46
tel.t-online.de:5060 N 081517466501 585 Registered Thu, 14 Jun 2018 22:48:47
6 SIP registrations.

sip show peers
Name/username Host Dyn Forcerport ACL Port Status Description
gigaset/gigaset 192.168.2.202 D a 5060 OK (22 ms)
konftel/konftel 192.168.2.203 D a 5060 OK (4 ms)
maxwell (Unspecified) D a 0 UNKNOWN
mdc_trunk_conf-1/nummer44 217.0.27.160 N 5060 OK (62 ms)
mdc_trunk_conf-2/Anonymou 217.0.27.160 N 5060 OK (36 ms)
mdc_trunk_conf-3/Anonymou 217.0.27.160 N 5060 OK (33 ms)
mdc_trunk_conf-4/Anonymou 217.0.27.160 N 5060 OK (36 ms)
mdc_trunk_conf-5/2421946e 217.10.79.9 N 5060 OK (22 ms)
mdc_trunk_conf-6/nummer44 217.0.27.160 N 5060 OK (62 ms)
obelixSIP/obelixSIP 192.168.2.247 D a 5060 OK (1 ms)
tabbad/tabbad 192.168.2.244 D a 43957 OK (8 ms)
11 sip peers [Monitored: 10 online, 1 offline Unmonitored: 0 online, 0 offline
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
– Executing [5015203911629@mdc_location-2:1] Verbose(“SIP/konftel-00000028”, “1,casi”) in new stack
casi
– Executing [5015203911629@mdc_location-2:2] Set(“SIP/konftel-00000028”, “__MDC_CALLER_LOCATION_ID=2”) in new stack
– Executing [5015203911629@mdc_location-2:3] Set(“SIP/konftel-00000028”, “__MDC_CALLER_LOCATION_NAME=casi”) in new stack
– Executing [5015203911629@mdc_location-2:4] Gosub(“SIP/konftel-00000028”, “sub_location,s,1(2,5015203911629)”) in new stack
– Executing [s@sub_location:1] Verbose(“SIP/konftel-00000028”, “1,used location id: 2 - dialed extension: 5015203911629”) in new stack
used location id: 2 - dialed extension: 5015203911629
– Executing [s@sub_location:2] Set(“SIP/konftel-00000028”, “MDC_CALLEE_NUM=5015203911629”) in new stack
– Executing [s@sub_location:3] Return(“SIP/konftel-00000028”, “”) in new stack
– Executing [5015203911629@mdc_location-2:5] Gosub(“SIP/konftel-00000028”, “sub_split-location,s,1(2)”) in new stack
– Executing [s@sub_split-location:1] Verbose(“SIP/konftel-00000028”, “1,get user for location: 2”) in new stack
get user for location: 2
– Executing [s@sub_split-location:2] GotoIf(“SIP/konftel-00000028”, “0?s-zero,1”) in new stack
– Executing [s@sub_split-location:3] Set(“SIP/konftel-00000028”, “TMP_USER_ID=3”) in new stack
– Executing [s@sub_split-location:4] Verbose(“SIP/konftel-00000028”, “1,user id: 3”) in new stack
user id: 3
– Executing [s@sub_split-location:5] Return(“SIP/konftel-00000028”, “”) in new stack
– Executing [5015203911629@mdc_location-2:6] GotoIf(“SIP/konftel-00000028”, “0?mdc_user-3,01520391162,1”) in new stack
– Executing [5015203911629@mdc_location-2:7] Goto(“SIP/konftel-00000028”, “mdc_user-3,5015203911629,1”) in new stack
– Goto (mdc_user-3,5015203911629,1)
– Executing [5015203911629@mdc_user-3:1] Verbose(“SIP/konftel-00000028”, “1,casi”) in new stack
casi
– Executing [5015203911629@mdc_user-3:2] Gosub(“SIP/konftel-00000028”, “sub_user,s,1(caller,3,101,casi,casi,101,101,101,de)”) in new stack
– Executing [s@sub_user:1] Verbose(“SIP/konftel-00000028”, “1,sub_user mode caller”) in new stack
sub_user mode caller
– Executing [s@sub_user:2] Goto(“SIP/konftel-00000028”, “s-caller,1”) in new stack
– Goto (sub_user,s-caller,1)
– Executing [s-caller@sub_user:1] Verbose(“SIP/konftel-00000028”, “1,sub_user user id: 3 - user exten: 101 - user: casi - realname: casi - own mailbox: 101 - watched mailbox: 101 - callerid(num): 101 - language: de”) in new stack
sub_user user id: 3 - user exten: 101 - user: casi - realname: casi - own mailbox: 101 - watched mailbox: 101 - callerid(num): 101 - language: de
– Executing [s-caller@sub_user:2] Set(“SIP/konftel-00000028”, “__MDC_CALLER_USER_ID=3”) in new stack
– Executing [s-caller@sub_user:3] Set(“SIP/konftel-00000028”, “__MDC_CALLER_NUM=101”) in new stack
– Executing [s-caller@sub_user:4] Set(“SIP/konftel-00000028”, “__MDC_CALLER_ACC_NAME=casi”) in new stack
– Executing [s-caller@sub_user:5] Set(“SIP/konftel-00000028”, “__MDC_CALLER_ACC_REALNAME=casi”) in new stack
– Executing [s-caller@sub_user:6] Set(“SIP/konftel-00000028”, “__MDC_CALLER_VM_OWN=101”) in new stack
– Executing [s-caller@sub_user:7] Set(“SIP/konftel-00000028”, “__MDC_CALLER_VM_WATCHED=101”) in new stack
– Executing [s-caller@sub_user:8] Set(“SIP/konftel-00000028”, “CALLERID(name)=casi”) in new stack
– Executing [s-caller@sub_user:9] Set(“SIP/konftel-00000028”, “CALLERID(num)=101”) in new stack
– Executing [s-caller@sub_user:10] Set(“SIP/konftel-00000028”, “CHANNEL(language)=de”) in new stack
– Executing [s-caller@sub_user:11] Return(“SIP/konftel-00000028”, “”) in new stack
– Executing [5015203911629@mdc_user-3:3] Gosub(“SIP/konftel-00000028”, “sub_emergency-check,s,1(5015203911629)”) in new stack
– Executing [s@sub_emergency-check:1] Verbose(“SIP/konftel-00000028”, "1,sub_emergency-check:: exten: 5015203911629 - descent: ") in new stack
sub_emergency-check:: exten: 5015203911629 - descent:
– Executing [s@sub_emergency-check:2] GotoIf(“SIP/konftel-00000028”, “1?5015203911629,1”) in new stack
– Goto (sub_emergency-check,5015203911629,1)
– Channel ‘SIP/konftel-00000028’ sent to invalid extension: context,exten,priority=sub_emergency-check,5015203911629,1
– Executing [i@sub_emergency-check:1] Return(“SIP/konftel-00000028”, “”) in new stack
– Executing [5015203911629@mdc_user-3:4] GotoIf(“SIP/konftel-00000028”, “0?mdc_emergency,dial,1”) in new stack
– Executing [5015203911629@mdc_user-3:5] GotoIf(“SIP/konftel-00000028”, “0?mdc_extphonecall-,5015203911629,dial”) in new stack
– Executing [5015203911629@mdc_user-3:6] Goto(“SIP/konftel-00000028”, “internal,5015203911629,1”) in new stack
– Goto (internal,5015203911629,1)
– Executing [5015203911629@internal:1] SIPAddHeader(“SIP/konftel-00000028”, "“Alert-Info:http://www.notused.de;info=alert-internal;x-line-id=0"”) in new stack
– Executing [5015203911629@internal:2] GosubIf(“SIP/konftel-00000028”, “1?sub_initcall,s,1(int,5015203911629)”) in new stack
– Executing [s@sub_initcall:1] Verbose(“SIP/konftel-00000028”, “1,sub_initcall descent: int exten: 5015203911629”) in new stack
sub_initcall descent: int exten: 5015203911629
– Executing [s@sub_initcall:2] GosubIf(“SIP/konftel-00000028”, “1?sub_initloop,s,1”) in new stack
– Executing [s@sub_initloop:1] Verbose(“SIP/konftel-00000028”, “1,initial loop”) in new stack
initial loop
– Executing [s@sub_initloop:2] Set(“SIP/konftel-00000028”, “MDC_ALIAS_HOP=0”) in new stack
– Executing [s@sub_initloop:3] Set(“SIP/konftel-00000028”, “MDC_MAIN_HOP=0”) in new stack
– Executing [s@sub_initloop:4] Return(“SIP/konftel-00000028”, “”) in new stack
– Executing [s@sub_initcall:3] Set(“SIP/konftel-00000028”, “__MDC_TRANSFERBACK_HOP=0”) in new stack
– Executing [s@sub_initcall:4] Set(“SIP/konftel-00000028”, “__MDC_DIALDESCENT=int”) in new stack
– Executing [s@sub_initcall:5] Goto(“SIP/konftel-00000028”, “int,1”) in new stack
– Goto (sub_initcall,int,1)
– Executing [int@sub_initcall:1] Set(“SIP/konftel-00000028”, “__MDC_DIALCALLERNUMINIT=101”) in new stack
– Executing [int@sub_initcall:2] Set(“SIP/konftel-00000028”, “__MDC_DIALCALLEENUMINIT=5015203911629”) in new stack
– Executing [int@sub_initcall:3] Set(“SIP/konftel-00000028”, “__MDC_DIALCALLEENUMMAP=5015203911629”) in new stack
– Executing [int@sub_initcall:4] Return(“SIP/konftel-00000028”, “”) in new stack
– Executing [5015203911629@internal:3] Goto(“SIP/konftel-00000028”, “main,5015203911629,1”) in new stack
– Goto (main,5015203911629,1)
– Executing [5015203911629@main:1] ExecIf(“SIP/konftel-00000028”, “0?Set(MDC_MAIN_HOP=0)”) in new stack
– Executing [5015203911629@main:2] Set(“SIP/konftel-00000028”, “MDC_MAIN_HOP=1”) in new stack
– Executing [5015203911629@main:3] GotoIf(“SIP/konftel-00000028”, “0?mdc_loop,s,1”) in new stack
– Executing [5015203911629@main:4] Gosub(“SIP/konftel-00000028”, “sub_defcall,s,1(5015203911629)”) in new stack
– Executing [s@sub_defcall:1] Set(“SIP/konftel-00000028”, “__MDC_ALIAS_HOP=1”) in new stack
– Executing [s@sub_defcall:2] Set(“SIP/konftel-00000028”, “__MDC_DIALCALLEENUM=5015203911629”) in new stack
– Executing [s@sub_defcall:3] Set(“SIP/konftel-00000028”, “__MDC_DIALCALLERNUM=101”) in new stack
– Executing [s@sub_defcall:4] Set(“SIP/konftel-00000028”, “__MDC_DIALCALLERLANGUAGE=de”) in new stack
– Executing [s@sub_defcall:5] Set(“SIP/konftel-00000028”, “__MDC_DIALCALLERNAME=casi”) in new stack
– Executing [s@sub_defcall:6] Set(“SIP/konftel-00000028”, “__MDC_DIALCHANNELNAME=konftel”) in new stack
– Executing [s@sub_defcall:7] Return(“SIP/konftel-00000028”, “”) in new stack
– Executing [5015203911629@main:5] GosubIf(“SIP/konftel-00000028”, “1?sub_homer,s,1”) in new stack
– Executing [s@sub_homer:1] SIPRemoveHeader(“SIP/konftel-00000028”, “P-cs-cid:”) in new stack
– Executing [s@sub_homer:2] ExecIf(“SIP/konftel-00000028”, “1?SipAddHeader(P-cs-cid: wTp.rj0AlpmVeLkoFw6iPRzEPiMUW8Hr)”) in new stack
– Executing [s@sub_homer:3] Return(“SIP/konftel-00000028”, “”) in new stack
– Executing [5015203911629@main:6] Goto(“SIP/konftel-00000028”, “mdc_distribute,5015203911629,1”) in new stack
– Goto (mdc_distribute,5015203911629,1)
– Executing [5015203911629@mdc_distribute:1] Set(“SIP/konftel-00000028”, “MDC_INPREFIX_TRUNK=5”) in new stack
– Executing [5015203911629@mdc_distribute:2] Verbose(“SIP/konftel-00000028”, “1,remove inprefix: 5”) in new stack
remove inprefix: 5
– Executing [5015203911629@mdc_distribute:3] Goto(“SIP/konftel-00000028”, “mdc_outgoing-6,015203911629,1”) in new stack
– Goto (mdc_outgoing-6,015203911629,1)
– Executing [015203911629@mdc_outgoing-6:1] Gosub(“SIP/konftel-00000028”, “sub_trunk-outgoing-6,015203911629,1”) in new stack
– Executing [015203911629@sub_trunk-outgoing-6:1] Gosub(“SIP/konftel-00000028”, “sub_nat2int,s,1(MDC_CALLEE_NUM_INTERNAT,015203911629,00,49,0,8151,0)”) in new stack
– Executing [s@sub_nat2int:1] Verbose(“SIP/konftel-00000028”, “1,sub_nat2int:: variable: MDC_CALLEE_NUM_INTERNAT - number: 015203911629 - intVAZ: 00 - lkz: 49 - natVAZ: 0 - onKz: 8151 - incoming: 0”) in new stack
sub_nat2int:: variable: MDC_CALLEE_NUM_INTERNAT - number: 015203911629 - intVAZ: 00 - lkz: 49 - natVAZ: 0 - onKz: 8151 - incoming: 0
– Executing [s@sub_nat2int:2] GotoIf(“SIP/konftel-00000028”, “0?s-emergency,1”) in new stack
– Executing [s@sub_nat2int:3] GotoIf(“SIP/konftel-00000028”, “0?s-int,1”) in new stack
– Executing [s@sub_nat2int:4] GotoIf(“SIP/konftel-00000028”, “0?s-int,1”) in new stack
– Executing [s@sub_nat2int:5] GotoIf(“SIP/konftel-00000028”, “0?s-convert,1”) in new stack
– Executing [s@sub_nat2int:6] GotoIf(“SIP/konftel-00000028”, “0?s-int,1”) in new stack
– Executing [s@sub_nat2int:7] GotoIf(“SIP/konftel-00000028”, “0?s-intshort,1”) in new stack
– Executing [s@sub_nat2int:8] GotoIf(“SIP/konftel-00000028”, “0?s-natshort,1”) in new stack
– Executing [s@sub_nat2int:9] GotoIf(“SIP/konftel-00000028”, “1?s-nat,1”) in new stack
– Goto (sub_nat2int,s-nat,1)
– Executing [s-nat@sub_nat2int:1] Verbose(“SIP/konftel-00000028”, “1,national”) in new stack
national
– Executing [s-nat@sub_nat2int:2] Set(“SIP/konftel-00000028”, “MDC_CALLEE_NUM_INTERNAT=004915203911629”) in new stack
– Executing [s-nat@sub_nat2int:3] Return(“SIP/konftel-00000028”, “”) in new stack
– Executing [015203911629@sub_trunk-outgoing-6:2] Gosub(“SIP/konftel-00000028”, “sub_int2nat,s,1(MDC_CALLEE_NUM_NAT,004915203911629,00,49,0,8151,0)”) in new stack
– Executing [s@sub_int2nat:1] Verbose(“SIP/konftel-00000028”, “1,sub_int2nat:: variable: MDC_CALLEE_NUM_NAT - exten: 004915203911629 - intVAZ: 00 - lkz: 49 - natVAZ: 0 - onKz: 8151 - incoming: 0”) in new stack
sub_int2nat:: variable: MDC_CALLEE_NUM_NAT - exten: 004915203911629 - intVAZ: 00 - lkz: 49 - natVAZ: 0 - onKz: 8151 - incoming: 0
– Executing [s@sub_int2nat:2] GotoIf(“SIP/konftel-00000028”, “0?s-emergency,1”) in new stack
– Executing [s@sub_int2nat:3] GotoIf(“SIP/konftel-00000028”, “0?nat”) in new stack
– Executing [s@sub_int2nat:4] GotoIf(“SIP/konftel-00000028”, “1?s-internat,1”) in new stack
– Goto (sub_int2nat,s-internat,1)
– Executing [s-internat@sub_int2nat:1] Set(“SIP/konftel-00000028”, “MDC_CALLEE_NUM_NAT=015203911629”) in new stack
– Executing [s-internat@sub_int2nat:2] Return(“SIP/konftel-00000028”, “”) in new stack
– Executing [015203911629@sub_trunk-outgoing-6:3] SIPAddHeader(“SIP/konftel-00000028”, “P-Preferred-Identity: sip:081517466501@tel.t-online.de”) in new stack
– Executing [015203911629@sub_trunk-outgoing-6:4] SIPAddHeader(“SIP/konftel-00000028”, “P-Asserted-Identity: sip:081517466501@tel.t-online.de”) in new stack
– Executing [015203911629@sub_trunk-outgoing-6:5] Set(“SIP/konftel-00000028”, “CALLERID(num)=081517466501”) in new stack
– Executing [015203911629@sub_trunk-outgoing-6:6] GotoIf(“SIP/konftel-00000028”, “0?searchdone”) in new stack
– Executing [015203911629@sub_trunk-outgoing-6:7] UserEvent(“SIP/konftel-00000028”, “ResolveCallerName,Strategy: system,Outbound: 1,Channel: SIP/konftel-00000028”) in new stack
– Executing [015203911629@sub_trunk-outgoing-6:8] Wait(“SIP/konftel-00000028”, “0.25”) in new stack
– Executing [015203911629@sub_trunk-outgoing-6:9] Verbose(“SIP/konftel-00000028”, “1,MDC_RESOLVENAME_HITS = 0”) in new stack
MDC_RESOLVENAME_HITS = 0
– Executing [015203911629@sub_trunk-outgoing-6:10] Verbose(“SIP/konftel-00000028”, "1,MDC_DIALCALLEENAME = ") in new stack
MDC_DIALCALLEENAME =
– Executing [015203911629@sub_trunk-outgoing-6:11] Verbose(“SIP/konftel-00000028”, “1,end call deflection”) in new stack
end call deflection
– Executing [015203911629@sub_trunk-outgoing-6:12] Verbose(“SIP/konftel-00000028”, “1,fax-office - fax-office 7466501”) in new stack
fax-office - fax-office 7466501
– Executing [015203911629@sub_trunk-outgoing-6:13] Set(“SIP/konftel-00000028”, “__SPYGROUP=015203911629:101”) in new stack
– Executing [015203911629@sub_trunk-outgoing-6:14] ExecIf(“SIP/konftel-00000028”, “0?Set(CHANNEL(hangup_handler_push)=hdlr-hint,s,1())”) in new stack
– Executing [015203911629@sub_trunk-outgoing-6:15] ExecIf(“SIP/konftel-00000028”, “0?Set(DEVICE_STATE(Custom:)=INUSE)”) in new stack
– Executing [015203911629@sub_trunk-outgoing-6:16] Dial(“SIP/konftel-00000028”, “SIP/mdc_trunk_conf-6/015203911629,t”) in new stack
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
– Called SIP/mdc_trunk_conf-6/015203911629
[Jun 14 22:53:52] WARNING[4337][C-00000011]: chan_sip.c:22914 handle_response_invite: Received response: “Forbidden” from ‘“casi” sip:081517466501@tel.t-online.de;tag=as62e98ec4’
== Everyone is busy/congested at this time (1:0/0/1)
– Executing [015203911629@sub_trunk-outgoing-6:17] Return(“SIP/konftel-00000028”, “”) in new stack
– Executing [015203911629@mdc_outgoing-6:2] Hangup(“SIP/konftel-00000028”, “21”) in new stack
== Spawn extension (mdc_outgoing-6, 015203911629, 2) exited non-zero on ‘SIP/konftel-00000028’
– Executing [h@mdc_outgoing-6:1] Gosub(“SIP/konftel-00000028”, “def_hangup,s,1(,CHANUNAVAIL,CALL)”) in new stack
– Executing [s@def_hangup:1] NoOp(“SIP/konftel-00000028”, “>>>def_hangup:: EXTEN: DIALSTATUS: CHANUNAVAIL QUEUESTATUS: REASON: CALL”) in new stack

Hallo,

wir haben seit ca. 2 Tagen genau das gleiche Problem, schau dir das hier mal an:
https://telekomhilft.telekom.de/t5/Telefonie-Internet/VOIP-SIP-Server-meldet-FORBIDDEN-Asterisk-DNS/td-p/2822238

Hi,

wie in dem Beitrag angemerkt, ist es sichtig den Telekom DNS (auch den von der Telekom am Anschluss bereitgestellten “lokal zuständigen” DNS) zu verwenden, entweder direkt oder über den Router. Leider ist die Telekom hier sehr “dynamisch”, wodurch sich ein alter Host relativ zügig nicht mehr zuständig fühlt.
Auch liefern wir ab 17.10 bzw 15.12 ein im default bei Telekom Ämter Nutzung aktiviertes Script mit, welches diese IP Wechsel prüft und dann einen “sip reload” absetzt, wodurch das Problem nicht mehr auftreten sollte.

Grüße,
Steve

Die änderung vom DNS hat mir nichts gebracht. Aber danke Steve. ein “sip reload” behebt das Problem. Dies kann auch wärend eines Gesprächs gemacht werden, ohne das die Verbindung weg bricht. Von daher ist ein Cronjob nun bis auf weiteres mein Workaround :slightly_smiling_face:
Gruß und danke für eure bisherige Hilfe.