[Problem] Interne Fritzbox-Nummer anrufen

robinsonR

Mitglied
Mitglied seit
17 Apr 2006
Beiträge
560
Punkte für Reaktionen
0
Punkte
16
Ich habe einen Asterisk als Nebenstelle an einer Fritzbox 7270 angeschlossen. Von Telefonen an der Fritzbox kann ich problemlos Nebenstellen des Asterisk anrufen. Leider funktioniert das Umgekehrte nicht. Ich nehme mal an, das Problem liegt am Aufbau der internen Nummern der Fritzbox (**6xx). Diese Anleitung diente mir als Vorlage, denke aber nicht, dass das ein Trixbox-, bzw. FreePBX-spezifisches Problem ist.
 
Wie sehen die passenden exten's im Dialplan aus?

Bau ggf. eine exten => _62X,Dial(SIP/**${EXTEN}@FB) ein, dann brauchst Du nur 621 wählen und Asterisk setzt die beiden * davor.
 
Vielen Dank für den Tipp. Sowas ähnliches hatte ich schon. Ich bin jetzt mit meiner Analyse einen Schritt weiter, oder bin auf ein anderes Problem gestossen, je nach dem. Ich habe jetzt nämlich gemerkt, dass sich der Asterisk plötzlich nicht mehr an der Fritzbox registrieren kann, dann gehen auch die Telefonie natürlich nicht.

Code:
[2013-08-22 11:04:10] VERBOSE[4231] config.c: == Parsing '/etc/asterisk/cli.conf': Found
[2013-08-22 11:04:14] NOTICE[4247] chan_sip.c: Peer 'fritzbox' is now UNREACHABLE! Last qualify: 0
[2013-08-22 11:04:14] NOTICE[4247] chan_sip.c: Peer '620 is now UNREACHABLE! Last qualify: 0
[2013-08-22 11:04:19] VERBOSE[4233] asterisk.c: -- Remote UNIX connection
[2013-08-22 11:04:30] NOTICE[4247] chan_sip.c: -- Registration for '[email protected]' timed out, trying again (Attempt #2)

Nachdem ich temporär die externe IP-Adresse der Fritzbox einsetzte, registrierte sich der Asterisk an der Fritzbox bis zum nächsten reload. Woran kann das liegen?
 
Vielen Dank. Nützt nur gerade nichts. :-(

Erstaunlich ist, dass die Verbindung über die öffentliche IP-Adresse stabil zu sein scheint. Wenn ich jetzt vom Asterisk eine Nebenstelle (623) der Fritzbox anrufen will, bekomme ich folgende Ausgabe auf der Konsole:

Code:
== Using SIP RTP CoS mark 5
    -- Executing [**623@from-internal:1] Macro("SIP/66-00000004", "user-callerid,LIMIT,") in new stack
    -- Executing [s@macro-user-callerid:1] Set("SIP/66-00000004", "AMPUSER=66") in new stack
    -- Executing [s@macro-user-callerid:2] GotoIf("SIP/66-00000004", "0?report") in new stack
    -- Executing [s@macro-user-callerid:3] ExecIf("SIP/66-00000004", "1?Set(REALCALLERIDNUM=66)") in new stack
    -- Executing [s@macro-user-callerid:4] Set("SIP/66-00000004", "AMPUSER=66") in new stack
    -- Executing [s@macro-user-callerid:5] Set("SIP/66-00000004", "AMPUSERCIDNAME=GXV3140") in new stack
    -- Executing [s@macro-user-callerid:6] GotoIf("SIP/66-00000004", "0?report") in new stack
    -- Executing [s@macro-user-callerid:7] Set("SIP/66-00000004", "AMPUSERCID=66") in new stack
    -- Executing [s@macro-user-callerid:8] Set("SIP/66-00000004", "CALLERID(all)="GXV3140" <66>") in new stack
    -- Executing [s@macro-user-callerid:9] GotoIf("SIP/66-00000004", "0?limit") in new stack
    -- Executing [s@macro-user-callerid:10] ExecIf("SIP/66-00000004", "1?Set(GROUP(concurrency_limit)=66)") in new stack
    -- Executing [s@macro-user-callerid:11] GosubIf("SIP/66-00000004", "7?sub-ccss,s,1(from-internal,**623)") in new stack
    -- Executing [s@sub-ccss:1] ExecIf("SIP/66-00000004", "0?Return()") in new stack
    -- Executing [s@sub-ccss:2] Set("SIP/66-00000004", "CCSS_SETUP=TRUE") in new stack
    -- Executing [s@sub-ccss:3] GosubIf("SIP/66-00000004", "0?monitor_config,1(from-internal,**623):monitor_default,1(from-internal,**623)") in new stack
    -- Executing [monitor_default@sub-ccss:1] GotoIf("SIP/66-00000004", "0?is_exten") in new stack
    -- Executing [monitor_default@sub-ccss:2] StackPop("SIP/66-00000004", "") in new stack
    -- Executing [monitor_default@sub-ccss:3] Return("SIP/66-00000004", "FALSE") in new stack
    -- Executing [s@macro-user-callerid:12] ExecIf("SIP/66-00000004", "0?Set(CHANNEL(language)=)") in new stack
    -- Executing [s@macro-user-callerid:13] GotoIf("SIP/66-00000004", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,26)
    -- Executing [s@macro-user-callerid:26] Set("SIP/66-00000004", "CALLERID(number)=66") in new stack
    -- Executing [s@macro-user-callerid:27] Set("SIP/66-00000004", "CALLERID(name)=GXV3140") in new stack
    -- Executing [s@macro-user-callerid:28] Set("SIP/66-00000004", "CHANNEL(language)=de") in new stack
    -- Executing [**623@from-internal:2] Set("SIP/66-00000004", "MOHCLASS=default") in new stack
    -- Executing [**623@from-internal:3] ExecIf("SIP/66-00000004", "1?Set(TRUNKCIDOVERRIDE=627)") in new stack
    -- Executing [**623@from-internal:4] Set("SIP/66-00000004", "_NODEST=") in new stack
    -- Executing [**623@from-internal:5] Gosub("SIP/66-00000004", "sub-record-check,s,1(out,**623,)") in new stack
    -- Executing [s@sub-record-check:1] GotoIf("SIP/66-00000004", "1?check") in new stack
    -- Goto (sub-record-check,s,6)
    -- Executing [s@sub-record-check:6] Set("SIP/66-00000004", "__MON_FMT=wav") in new stack
    -- Executing [s@sub-record-check:7] GotoIf("SIP/66-00000004", "1?next") in new stack
    -- Goto (sub-record-check,s,10)
    -- Executing [s@sub-record-check:10] ExecIf("SIP/66-00000004", "0?Return()") in new stack
    -- Executing [s@sub-record-check:11] GotoIf("SIP/66-00000004", "0?out,1") in new stack
    -- Executing [s@sub-record-check:12] Set("SIP/66-00000004", "__REC_STATUS=INITIALIZED") in new stack
    -- Executing [s@sub-record-check:13] ExecIf("SIP/66-00000004", "0?Set(__REC_POLICY_MODE=)") in new stack
    -- Executing [s@sub-record-check:14] Set("SIP/66-00000004", "NOW=1377181656") in new stack
    -- Executing [s@sub-record-check:15] Set("SIP/66-00000004", "__DAY=22") in new stack
    -- Executing [s@sub-record-check:16] Set("SIP/66-00000004", "__MONTH=08") in new stack
    -- Executing [s@sub-record-check:17] Set("SIP/66-00000004", "__YEAR=2013") in new stack
    -- Executing [s@sub-record-check:18] Set("SIP/66-00000004", "__TIMESTR=20130822-162736") in new stack
    -- Executing [s@sub-record-check:19] Set("SIP/66-00000004", "__FROMEXTEN=66") in new stack
    -- Executing [s@sub-record-check:20] Set("SIP/66-00000004", "__CALLFILENAME=out-**623-66-20130822-162736-1377181656.4") in new stack
    -- Executing [s@sub-record-check:21] Goto("SIP/66-00000004", "out,1") in new stack
    -- Goto (sub-record-check,out,1)
    -- Executing [out@sub-record-check:1] ExecIf("SIP/66-00000004", "1?Set(__REC_POLICY_MODE=dontcare)") in new stack
    -- Executing [out@sub-record-check:2] GosubIf("SIP/66-00000004", "0?record,1(exten,**623,66)") in new stack
    -- Executing [out@sub-record-check:3] Return("SIP/66-00000004", "") in new stack
    -- Executing [**623@from-internal:6] Macro("SIP/66-00000004", "dialout-trunk,2,**623,") in new stack
    -- Executing [s@macro-dialout-trunk:1] Set("SIP/66-00000004", "DIAL_TRUNK=2") in new stack
    -- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/66-00000004", "0?sub-pincheck,s,1()") in new stack
    -- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/66-00000004", "0?disabletrunk,1") in new stack
    -- Executing [s@macro-dialout-trunk:4] Set("SIP/66-00000004", "DIAL_NUMBER=**623") in new stack
    -- Executing [s@macro-dialout-trunk:5] Set("SIP/66-00000004", "DIAL_TRUNK_OPTIONS=tr") in new stack
    -- Executing [s@macro-dialout-trunk:6] Set("SIP/66-00000004", "OUTBOUND_GROUP=OUT_2") in new stack
    -- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/66-00000004", "1?nomax") in new stack
    -- Goto (macro-dialout-trunk,s,9)
    -- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/66-00000004", "0?skipoutcid") in new stack
    -- Executing [s@macro-dialout-trunk:10] Set("SIP/66-00000004", "DIAL_TRUNK_OPTIONS=") in new stack
    -- Executing [s@macro-dialout-trunk:11] Macro("SIP/66-00000004", "outbound-callerid,2") in new stack
    -- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/66-00000004", "0?Set(CALLERPRES()=)") in new stack
    -- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/66-00000004", "0?Set(REALCALLERIDNUM=66)") in new stack
    -- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/66-00000004", "1?normcid") in new stack
    -- Goto (macro-outbound-callerid,s,6)
    -- Executing [s@macro-outbound-callerid:6] Set("SIP/66-00000004", "USEROUTCID=") in new stack
    -- Executing [s@macro-outbound-callerid:7] Set("SIP/66-00000004", "EMERGENCYCID=") in new stack
    -- Executing [s@macro-outbound-callerid:8] Set("SIP/66-00000004", "TRUNKOUTCID=627") in new stack
    -- Executing [s@macro-outbound-callerid:9] GotoIf("SIP/66-00000004", "1?trunkcid") in new stack
    -- Goto (macro-outbound-callerid,s,12)
    -- Executing [s@macro-outbound-callerid:12] ExecIf("SIP/66-00000004", "1?Set(CALLERID(all)=627)") in new stack
    -- Executing [s@macro-outbound-callerid:13] ExecIf("SIP/66-00000004", "0?Set(CALLERID(all)=)") in new stack
    -- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/66-00000004", "1?Set(CALLERID(all)=627)") in new stack
    -- Executing [s@macro-outbound-callerid:15] ExecIf("SIP/66-00000004", "0?Set(CALLERPRES()=prohib_passed_screen)") in new stack
    -- Executing [s@macro-dialout-trunk:12] GosubIf("SIP/66-00000004", "0?sub-flp-2,s,1()") in new stack
    -- Executing [s@macro-dialout-trunk:13] Set("SIP/66-00000004", "OUTNUM=**623") in new stack
    -- Executing [s@macro-dialout-trunk:14] Set("SIP/66-00000004", "custom=SIP/fritzbox") in new stack
    -- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/66-00000004", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default))") in new stack
    -- Executing [s@macro-dialout-trunk:16] ExecIf("SIP/66-00000004", "0?Set(DIAL_TRUNK_OPTIONS=M(confirm))") in new stack
    -- Executing [s@macro-dialout-trunk:17] Macro("SIP/66-00000004", "dialout-trunk-predial-hook,") in new stack
    -- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/66-00000004", "") in new stack
    -- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/66-00000004", "0?bypass,1") in new stack
    -- Executing [s@macro-dialout-trunk:19] ExecIf("SIP/66-00000004", "1?Set(CONNECTEDLINE(num,i)=**623)") in new stack
    -- Executing [s@macro-dialout-trunk:20] ExecIf("SIP/66-00000004", "1?Set(CONNECTEDLINE(name,i)=CID:627)") in new stack
    -- Executing [s@macro-dialout-trunk:21] GotoIf("SIP/66-00000004", "0?customtrunk") in new stack
    -- Executing [s@macro-dialout-trunk:22] Dial("SIP/66-00000004", "SIP/fritzbox/**623,300,") in new stack
  == Using SIP VIDEO TOS bits 136
  == Using SIP VIDEO CoS mark 6
  == Using SIP RTP TOS bits 184
  == Using SIP RTP CoS mark 5
    -- Called SIP/fritzbox/**623
    -- SIP/fritzbox-00000005 is circuit-busy
  == Everyone is busy/congested at this time (1:0/1/0)
    -- Executing [s@macro-dialout-trunk:23] NoOp("SIP/66-00000004", "Dial failed for some reason with DIALSTATUS = CONGESTION and HANGUPCAUSE = 21") in new stack
    -- Executing [s@macro-dialout-trunk:24] Goto("SIP/66-00000004", "s-CONGESTION,1") in new stack
    -- Goto (macro-dialout-trunk,s-CONGESTION,1)
    -- Executing [s-CONGESTION@macro-dialout-trunk:1] Set("SIP/66-00000004", "RC=21") in new stack
    -- Executing [s-CONGESTION@macro-dialout-trunk:2] Goto("SIP/66-00000004", "21,1") in new stack
    -- Goto (macro-dialout-trunk,21,1)
    -- Executing [21@macro-dialout-trunk:1] Goto("SIP/66-00000004", "continue,1") in new stack
    -- Goto (macro-dialout-trunk,continue,1)
    -- Executing [continue@macro-dialout-trunk:1] GotoIf("SIP/66-00000004", "1?noreport") in new stack
    -- Goto (macro-dialout-trunk,continue,3)
    -- Executing [continue@macro-dialout-trunk:3] NoOp("SIP/66-00000004", "TRUNK Dial failed due to CONGESTION HANGUPCAUSE: 21 - failing through to other trunks") in new stack
    -- Executing [continue@macro-dialout-trunk:4] Set("SIP/66-00000004", "CALLERID(number)=66") in new stack
    -- Executing [**623@from-internal:7] Macro("SIP/66-00000004", "outisbusy,") in new stack
    -- Executing [s@macro-outisbusy:1] Progress("SIP/66-00000004", "") in new stack
    -- Executing [s@macro-outisbusy:2] GotoIf("SIP/66-00000004", "0?emergency,1") in new stack
    -- Executing [s@macro-outisbusy:3] GotoIf("SIP/66-00000004", "0?intracompany,1") in new stack
    -- Executing [s@macro-outisbusy:4] Playback("SIP/66-00000004", "all-circuits-busy-now&pls-try-call-later, noanswer") in new stack
    -- <SIP/66-00000004> Playing 'all-circuits-busy-now.alaw' (language 'de')
       > 0x9eccbf8 -- Probation passed - setting RTP source address to 10.0.1.184:39210
    -- <SIP/66-00000004> Playing 'pls-try-call-later.alaw' (language 'de')
  == Spawn extension (macro-outisbusy, s, 4) exited non-zero on 'SIP/66-00000004' in macro 'outisbusy'
  == Spawn extension (from-internal, **623, 7) exited non-zero on 'SIP/66-00000004'
    -- Executing [h@from-internal:1] Hangup("SIP/66-00000004", "") in new stack
  == Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/66-00000004'

als weitere Erklärung: Mein Asterisk ist als Nebenstelle 627 an de Fritzbox registriert. Wenn ich von der Fritzbox aus die 627 wähle, passiert gar nichts. Die Fritzbox gibt folgende Meldung aus
Code:
22.08.13	16:23:36	Internettelefonie mit [email protected]:5060 über 10.0.1.250:5060 war nicht erfolgreich. Ursache: (408)
Noch eine Idee?
 

Statistik des Forums

Themen
244,827
Beiträge
2,219,006
Mitglieder
371,520
Neuestes Mitglied
fredl_2
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.