Hallo, ich habe folgende Konfiguration:
Telefonate gehen auf meiner FritzBox ein und werden dort an eine Nebenstelle (IP-Tel) weitergegeben. Diese Route wird als Hauptleitung in der Asterisk-Telefonanlage verarbeitet. In der Asterisk sind wiederum Nebenstellen konfiguriert, die als Hauptleitung an die FritzBox zurückgegeben werden. Grundsätzlich funktionieren daher eingehende und ausgehende Telefonate. Alle Gespräche werden über die FritzBox und die Asterisk-TK wunderbar.
Nun habe ich vor, einen CallBack einzurichten.
Bisher verband eine Inbound-Route eine Nebenstelle, nun soll die Inbound-Route einen CallBack auslösen:

Unter Rückruf habe ich einen einfachen CallBack eingestellt. Nach einem Rückruf soll mit der Nebenstelle verbunden werden:

Während die direkte Verbindung zur Nebenstelle - wie erwähnt - funktioniert, wird jedoch über einen Rückruf kein CallBack ausgelöst. CLI zeigt folgendes:
Ich weiss nun nicht mehr, wo ich noch ansetzen soll. In der Konfiguration habe ich es mit gesetzter Rückrufnummer als auch ohne probiert. Ich habe auch bereits die Rückrufnummer mit <> erfasst als auch ohne.
Vielleicht kann sich jemand das Problem einmal ansehen?
Ganz lieben Dank schon mal.
Brilonese
Telefonate gehen auf meiner FritzBox ein und werden dort an eine Nebenstelle (IP-Tel) weitergegeben. Diese Route wird als Hauptleitung in der Asterisk-Telefonanlage verarbeitet. In der Asterisk sind wiederum Nebenstellen konfiguriert, die als Hauptleitung an die FritzBox zurückgegeben werden. Grundsätzlich funktionieren daher eingehende und ausgehende Telefonate. Alle Gespräche werden über die FritzBox und die Asterisk-TK wunderbar.
Nun habe ich vor, einen CallBack einzurichten.
Bisher verband eine Inbound-Route eine Nebenstelle, nun soll die Inbound-Route einen CallBack auslösen:

Unter Rückruf habe ich einen einfachen CallBack eingestellt. Nach einem Rückruf soll mit der Nebenstelle verbunden werden:

Während die direkte Verbindung zur Nebenstelle - wie erwähnt - funktioniert, wird jedoch über einen Rückruf kein CallBack ausgelöst. CLI zeigt folgendes:
== Setting global variable 'SIPDOMAIN' to '192.168.200.32'
-- Executing [02999921XXXX@from-pstn:1] Set("PJSIP/FritzBox921XXXX-00000008", "__DIRECTION=INBOUND") in new stack
-- Executing [02999921XXXX@from-pstn:2] Gosub("PJSIP/FritzBox921XXXX-00000008", "sub-record-check,s,1(in,02999921XXXX,dontcare)") in new stack
-- Executing [s@sub-record-check:1] GotoIf("PJSIP/FritzBox921XXXX-00000008", "0?initialized") in new stack
-- Executing [s@sub-record-check:2] Set("PJSIP/FritzBox921XXXX-00000008", "__REC_STATUS=INITIALIZED") in new stack
-- Executing [s@sub-record-check:3] Set("PJSIP/FritzBox921XXXX-00000008", "NOW=1641910509") in new stack
-- Executing [s@sub-record-check:4] Set("PJSIP/FritzBox921XXXX-00000008", "__DAY=11") in new stack
-- Executing [s@sub-record-check:5] Set("PJSIP/FritzBox921XXXX-00000008", "__MONTH=01") in new stack
-- Executing [s@sub-record-check:6] Set("PJSIP/FritzBox921XXXX-00000008", "__YEAR=2022") in new stack
-- Executing [s@sub-record-check:7] Set("PJSIP/FritzBox921XXXX-00000008", "__TIMESTR=20220111-151509") in new stack
-- Executing [s@sub-record-check:8] Set("PJSIP/FritzBox921XXXX-00000008", "__FROMEXTEN=unknown") in new stack
-- Executing [s@sub-record-check:9] Set("PJSIP/FritzBox921XXXX-00000008", "__MON_FMT=wav") in new stack
-- Executing [s@sub-record-check:10] NoOp("PJSIP/FritzBox921XXXX-00000008", "Recordings initialized") in new stack
-- Executing [s@sub-record-check:11] ExecIf("PJSIP/FritzBox921XXXX-00000008", "0?Set(ARG3=dontcare)") in new stack
-- Executing [s@sub-record-check:12] Set("PJSIP/FritzBox921XXXX-00000008", "REC_POLICY_MODE_SAVE=") in new stack
-- Executing [s@sub-record-check:13] ExecIf("PJSIP/FritzBox921XXXX-00000008", "0?Set(REC_STATUS=NO)") in new stack
-- Executing [s@sub-record-check:14] GotoIf("PJSIP/FritzBox921XXXX-00000008", "2?checkaction") in new stack
-- Goto (sub-record-check,s,17)
-- Executing [s@sub-record-check:17] GotoIf("PJSIP/FritzBox921XXXX-00000008", "1?sub-record-check,in,1") in new stack
-- Goto (sub-record-check,in,1)
-- Executing [in@sub-record-check:1] NoOp("PJSIP/FritzBox921XXXX-00000008", "Inbound Recording Check to 02999921XXXX") in new stack
-- Executing [in@sub-record-check:2] Set("PJSIP/FritzBox921XXXX-00000008", "FROMEXTEN=unknown") in new stack
-- Executing [in@sub-record-check:3] ExecIf("PJSIP/FritzBox921XXXX-00000008", "12?Set(FROMEXTEN=015777775364)") in new stack
-- Executing [in@sub-record-check:4] Gosub("PJSIP/FritzBox921XXXX-00000008", "recordcheck,1(dontcare,in,02999921XXXX)") in new stack
-- Executing [recordcheck@sub-record-check:1] NoOp("PJSIP/FritzBox921XXXX-00000008", "Starting recording check against dontcare") in new stack
-- Executing [recordcheck@sub-record-check:2] Goto("PJSIP/FritzBox921XXXX-00000008", "dontcare") in new stack
-- Goto (sub-record-check,recordcheck,3)
-- Executing [recordcheck@sub-record-check:3] Return("PJSIP/FritzBox921XXXX-00000008", "") in new stack
-- Executing [in@sub-record-check:5] Return("PJSIP/FritzBox921XXXX-00000008", "") in new stack
-- Executing [02999921XXXX@from-pstn:3] Set("PJSIP/FritzBox921XXXX-00000008", "CHANNEL(tonezone)=us") in new stack
-- Executing [02999921XXXX@from-pstn:4] Set("PJSIP/FritzBox921XXXX-00000008", "__FROM_DID=02999921XXXX") in new stack
-- Executing [02999921XXXX@from-pstn:5] Set("PJSIP/FritzBox921XXXX-00000008", "returnhere=1") in new stack
-- Executing [02999921XXXX@from-pstn:6] Gosub("PJSIP/FritzBox921XXXX-00000008", "app-blacklist-check,s,1()") in new stack
-- Executing [s@app-blacklist-check:1] GotoIf("PJSIP/FritzBox921XXXX-00000008", "0?blacklisted") in new stack
-- Executing [s@app-blacklist-check:2] Set("PJSIP/FritzBox921XXXX-00000008", "CALLED_BLACKLIST=1") in new stack
-- Executing [s@app-blacklist-check:3] Return("PJSIP/FritzBox921XXXX-00000008", "") in new stack
-- Executing [02999921XXXX@from-pstn:7] Set("PJSIP/FritzBox921XXXX-00000008", "CDR(did)=02999921XXXX") in new stack
-- Executing [02999921XXXX@from-pstn:8] GotoIf("PJSIP/FritzBox921XXXX-00000008", "0?") in new stack
-- Executing [02999921XXXX@from-pstn:9] ExecIf("PJSIP/FritzBox921XXXX-00000008", "1 ?Set(CALLERID(name)=015777775364)") in new stack
-- Executing [02999921XXXX@from-pstn:10] Set("PJSIP/FritzBox921XXXX-00000008", "__MOHCLASS=") in new stack
-- Executing [02999921XXXX@from-pstn:11] Set("PJSIP/FritzBox921XXXX-00000008", "__REVERSAL_REJECT=FALSE") in new stack
-- Executing [02999921XXXX@from-pstn:12] GotoIf("PJSIP/FritzBox921XXXX-00000008", "1?post-reverse-charge") in new stack
-- Goto (from-pstn,02999921XXXX,14)
-- Executing [02999921XXXX@from-pstn:14] NoOp("PJSIP/FritzBox921XXXX-00000008", "") in new stack
-- Executing [02999921XXXX@from-pstn:15] Set("PJSIP/FritzBox921XXXX-00000008", "__CALLINGNAMEPRES_SV=allowed_not_screened") in new stack
-- Executing [02999921XXXX@from-pstn:16] Set("PJSIP/FritzBox921XXXX-00000008", "__CALLINGNUMPRES_SV=allowed_not_screened") in new stack
-- Executing [02999921XXXX@from-pstn:17] Set("PJSIP/FritzBox921XXXX-00000008", "CALLERID(name-pres)=allowed_not_screened") in new stack
-- Executing [02999921XXXX@from-pstn:18] Set("PJSIP/FritzBox921XXXX-00000008", "CALLERID(num-pres)=allowed_not_screened") in new stack
-- Executing [02999921XXXX@from-pstn:19] NoOp("PJSIP/FritzBox921XXXX-00000008", "CallerID Entry Point") in new stack
-- Executing [02999921XXXX@from-pstn:20] Goto("PJSIP/FritzBox921XXXX-00000008", "callback,2,1") in new stack
-- Goto (callback,2,1)
-- Executing [2@callback:1] Set("PJSIP/FritzBox921XXXX-00000008", "CALL=015777775364") in new stack
-- Executing [2@callback:2] Set("PJSIP/FritzBox921XXXX-00000008", "DESTINATION=from-did-direct.100.1") in new stack
-- Executing [2@callback:3] Set("PJSIP/FritzBox921XXXX-00000008", "SLEEP=10") in new stack
-- Executing [2@callback:4] Set("PJSIP/FritzBox921XXXX-00000008", "TIMEOUT=15") in new stack
-- Executing [2@callback:5] Set("PJSIP/FritzBox921XXXX-00000008", "CALLERID=Callback") in new stack
-- Executing [2@callback:6] System("PJSIP/FritzBox921XXXX-00000008", "/var/lib/asterisk/bin/callback 015777775364 from-did-direct.100.1 10 15 Q2FsbGJhY2s= &") in new stack
-- Executing [2@callback:7] Hangup("PJSIP/FritzBox921XXXX-00000008", "") in new stack
== Spawn extension (callback, 2, 7) exited non-zero on 'PJSIP/FritzBox921XXXX-00000008'
-- Called 015777775364@from-internal
-- Executing [015777775364@from-internal:1] Macro("Local/015777775364@from-internal-00000002;2", "user-callerid,LIMIT,EXTERNAL,") in new stack
-- Executing [s@macro-user-callerid:1] Set("Local/015777775364@from-internal-00000002;2", "TOUCH_MONITOR=1641910520.14") in new stack
-- Executing [s@macro-user-callerid:2] Set("Local/015777775364@from-internal-00000002;2", "CHANCONTEXT=from-internal-00000002;2") in new stack
-- Executing [s@macro-user-callerid:3] Set("Local/015777775364@from-internal-00000002;2", "CHANCONTEXT=from") in new stack
-- Executing [s@macro-user-callerid:4] Set("Local/015777775364@from-internal-00000002;2", "CHANEXTENCONTEXT=015777775364@from-internal-00000002;2") in new stack
-- Executing [s@macro-user-callerid:5] Set("Local/015777775364@from-internal-00000002;2", "CHANEXTEN=015777775364") in new stack
-- Executing [s@macro-user-callerid:6] Set("Local/015777775364@from-internal-00000002;2", "CALLERID(number)=") in new stack
-- Executing [s@macro-user-callerid:7] Set("Local/015777775364@from-internal-00000002;2", "AMPUSER=") in new stack
-- Executing [s@macro-user-callerid:8] Set("Local/015777775364@from-internal-00000002;2", "HOTDESCKCHAN=015777775364@from-internal-00000002;2") in new stack
-- Executing [s@macro-user-callerid:9] Set("Local/015777775364@from-internal-00000002;2", "HOTDESKEXTEN=015777775364@from") in new stack
-- Executing [s@macro-user-callerid:10] Set("Local/015777775364@from-internal-00000002;2", "HOTDESKCALL=0") in new stack
-- Executing [s@macro-user-callerid:11] ExecIf("Local/015777775364@from-internal-00000002;2", "0?Set(HOTDESKCALL=1)") in new stack
-- Executing [s@macro-user-callerid:12] ExecIf("Local/015777775364@from-internal-00000002;2", "0?Set(CALLERID(name)=)") in new stack
-- Executing [s@macro-user-callerid:13] GotoIf("Local/015777775364@from-internal-00000002;2", "0?report") in new stack
-- Executing [s@macro-user-callerid:14] ExecIf("Local/015777775364@from-internal-00000002;2", "1?Set(REALCALLERIDNUM=)") in new stack
-- Executing [s@macro-user-callerid:15] Set("Local/015777775364@from-internal-00000002;2", "AMPUSER=") in new stack
-- Executing [s@macro-user-callerid:16] GotoIf("Local/015777775364@from-internal-00000002;2", "0?limit") in new stack
-- Executing [s@macro-user-callerid:17] Set("Local/015777775364@from-internal-00000002;2", "AMPUSERCIDNAME=") in new stack
-- Executing [s@macro-user-callerid:18] ExecIf("Local/015777775364@from-internal-00000002;2", "0?Set(__CIDMASQUERADING=TRUE)") in new stack
-- Executing [s@macro-user-callerid:19] GotoIf("Local/015777775364@from-internal-00000002;2", "1?report") in new stack
-- Goto (macro-user-callerid,s,28)
-- Executing [s@macro-user-callerid:28] NoOp("Local/015777775364@from-internal-00000002;2", "Macro Depth is 1") in new stack
-- Executing [s@macro-user-callerid:29] GotoIf("Local/015777775364@from-internal-00000002;2", "1?report2:macroerror") in new stack
-- Goto (macro-user-callerid,s,30)
-- Executing [s@macro-user-callerid:30] GotoIf("Local/015777775364@from-internal-00000002;2", "1?continue") in new stack
-- Goto (macro-user-callerid,s,49)
-- Executing [s@macro-user-callerid:49] Set("Local/015777775364@from-internal-00000002;2", "CALLERID(number)=") in new stack
-- Executing [s@macro-user-callerid:50] Set("Local/015777775364@from-internal-00000002;2", "CALLERID(name)=Callback") in new stack
-- Executing [s@macro-user-callerid:51] GotoIf("Local/015777775364@from-internal-00000002;2", "0?cnum") in new stack
-- Executing [s@macro-user-callerid:52] Set("Local/015777775364@from-internal-00000002;2", "CDR(cnam)=Callback") in new stack
-- Executing [s@macro-user-callerid:53] Set("Local/015777775364@from-internal-00000002;2", "CDR(cnum)=") in new stack
-- Executing [s@macro-user-callerid:54] Set("Local/015777775364@from-internal-00000002;2", "CHANNEL(language)=en") in new stack
-- Executing [015777775364@from-internal:2] NoCDR("Local/015777775364@from-internal-00000002;2", "") in new stack
-- Executing [015777775364@from-internal:3] Progress("Local/015777775364@from-internal-00000002;2", "") in new stack
-- Local/015777775364@from-internal-00000002;1 is making progress
-- Executing [015777775364@from-internal:4] Wait("Local/015777775364@from-internal-00000002;2", "1") in new stack
== Spawn extension (from-internal, 015777775364, 4) exited non-zero on 'Local/015777775364@from-internal-00000002;2'
-- Executing [h@from-internal:1] Macro("Local/015777775364@from-internal-00000002;2", "hangupcall") in new stack
-- Executing [s@macro-hangupcall:1] GotoIf("Local/015777775364@from-internal-00000002;2", "1?theend") in new stack
-- Goto (macro-hangupcall,s,3)
-- Executing [s@macro-hangupcall:3] ExecIf("Local/015777775364@from-internal-00000002;2", "0?Set(CDR(recordingfile)=)") in new stack
-- Executing [s@macro-hangupcall:4] NoOp("Local/015777775364@from-internal-00000002;2", " montior file= ") in new stack
-- Executing [s@macro-hangupcall:5] GotoIf("Local/015777775364@from-internal-00000002;2", "1?skipagi") in new stack
-- Goto (macro-hangupcall,s,7)
-- Executing [s@macro-hangupcall:7] Hangup("Local/015777775364@from-internal-00000002;2", "") in new stack
== Spawn extension (macro-hangupcall, s, 7) exited non-zero on 'Local/015777775364@from-internal-00000002;2' in macro 'hangupcall'
== Spawn extension (from-internal, h, 1) exited non-zero on 'Local/015777775364@from-internal-00000002;2'
Ich weiss nun nicht mehr, wo ich noch ansetzen soll. In der Konfiguration habe ich es mit gesetzter Rückrufnummer als auch ohne probiert. Ich habe auch bereits die Rückrufnummer mit <> erfasst als auch ohne.
Vielleicht kann sich jemand das Problem einmal ansehen?
Ganz lieben Dank schon mal.
Brilonese