
Zitat von
bodega
[Edit frank_m24: Seitenlanges Vollzitat gelöscht. Lies noch mal die Forumregeln.]
Ich bin newbie sowohl im Forum als auch mit DMTFBox.
Ich habe die DMTFBox erfolgreich auf meiner FritzBox Fon WLAN 7170 installiert und dann das obige Skript zum PIN Eingabe bei anonymen Anrufen installiert. Leider funktioniert es bei mit noch nicht. Wenn ich vom Handy aus anonym auf meinen Festnetzanschluss anrufe, erhalte ich zwar folgende Meldung. Der anonyme Anruf wird erkannt und (angeblich) das Skript /var/dtmfbox/script/action_anonymous.sh ausgeführt. Aber die FritzBox nimmt den Anruf nicht an, d.h. es klingelt weiter und es wird nicht auf die Eingabe einer PIN reagiert. Ich habe mal in das Skript action_anonymous.sh ein paar echo-Anweisungen eingefügt; diese werden aber nicht ausgegeben. Dann habe ich den Dateinamen in action_anonymous2.sh geändert und hätte eigentlich eine Fehlermeldung erwartet, dass die Datei action_anonymous.sh nicht existiert. Aber es kommt trotzdem die Meldung
12:24:02 [plugin.menu] Script: /var/dtmfbox/script/action_anonymous.sh(/var/dtm
fbox/script/action_anonymous.sh, "CONNECT", "CAPI", "INCOMING", "0", "-1", "unkn
own", "anonymous", "1", "", "ENTRY") (acc=1 con=0)
Schließlich habe ich mal probiert, über telnet einen eingehenden Anruf "manuell" anzunehmen über ./dtmfbox -hook up . Scheint aber auch nicht zu gehen; es klingelt munter weiter.
Kann sich jemand erklären, woran das liegt ?
Ich füge nun mal den Log ein:
[Edit frank_m24: Bitte benutzt CODE Tags für solche Ausgaben.]
Code:
# ./rc.dtmfbox stop
Stop dtmfbox ... done!
# ./rc.dtmfbox foreground
Start dtmfbox ...
-------------------------------------------------------------------------------
dtmfbox 0.5.0
-------------------------------------------------------------------------------
12:28:56 dtmfbox 0.5.0
12:28:56 PJSIP 1.0.1
12:28:56 select() I/O Queue created (0x51e318)
12:28:56 Module "mod-msg-print" registered
12:28:56 Init VoIP ...
12:28:56 Resolve local IP ...
12:28:56 Use IP: 62.157.140.133
12:28:56 SIP UDP transport started, published address is 62.157.140.133:5061
12:28:56 UDP server listening on port 5061
12:28:56 Module "mod-tsx-layer" registered
12:28:56 Module "mod-stateful-util" registered
12:28:56 Module "mod-ua" registered
12:28:56 Module "mod-100rel" registered
12:28:56 Module "mod-invite" registered
12:28:56 Module "dtmfbox" registered
12:28:56 Module "dtmfbox_registrar" registered
12:28:56 select() I/O Queue created (0x521ad4)
12:28:56 Conference bridge created [8000/16/1]
12:28:56 Allocate 11 connections with 4 RTP/RTCP transports
12:28:56 connection_by_free - Connection: 0
12:28:56 RTP/RTCP: 80.156.86.78:4000-4001
12:28:56 RTP/RTCP: 62.157.140.133:4002-4003
12:28:56 RTP/RTCP: 80.156.86.78:4004-4005
12:28:57 RTP/RTCP: 80.156.86.78:4006-4007
12:28:57 RTP/RTCP media transport created
12:28:57 VoIP initialized!
12:28:57 Init CAPI ...
12:28:57 CAPI controller: 5
12:28:57 Found controller #1 with 2 B-channel(s)
12:28:57 Found controller #2 with 2 B-channel(s)
12:28:57 Found controller #3 with 2 B-channel(s)
12:28:57 Found controller #4 with 1 B-channel(s)
12:28:57 Found controller #5 with 3 B-channel(s)
12:28:57 CAPI registered (ApplID: 6, B-Channels: 10)
12:28:57 Build a-law/pcm table buffer
12:28:59 CAPI initialized!
12:28:59 [plugin.menu] Loading /var/dtmfbox//menu.cfg ...
12:28:59 [plugin.menu] action:1_ctrl5reject loaded (5 entries)
12:28:59 [plugin.menu] action:2_action_wrapper loaded (1 entries)
12:28:59 [plugin.menu] action:4_anonymous loaded (3 entries)
12:28:59 [plugin.menu] lib:speak loaded (2 entries)
12:28:59 [plugin.menu] menu:am loaded (2 entries)
12:28:59 [plugin.menu] menu:am_delete loaded (3 entries)
12:28:59 [plugin.menu] menu:am_on_off loaded (2 entries)
12:28:59 [plugin.menu] menu:am_setup loaded (4 entries)
12:28:59 [plugin.menu] menu:anonymous_caller loaded (2 entries)
12:28:59 [plugin.menu] menu:anticallcenter loaded (1 entries)
12:28:59 [plugin.menu] menu:callthrough_account loaded (13 entries)
12:28:59 [plugin.menu] menu:callthrough_number loaded (3 entries)
12:28:59 [plugin.menu] menu:callthrough_pin loaded (3 entries)
12:28:59 [plugin.menu] menu:dtmf_commands loaded (7 entries)
12:28:59 [plugin.menu] menu:main loaded (6 entries)
12:28:59 [plugin.menu] menu:misc loaded (6 entries)
12:28:59 [plugin.menu] menu:misc_checkmaild loaded (5 entries)
12:28:59 [plugin.menu] menu:misc_fb loaded (5 entries)
12:28:59 [plugin.menu] menu:misc_radio loaded (11 entries)
12:28:59 [plugin.menu] menu:misc_weather loaded (3 entries)
12:28:59 [plugin.menu] script:action_anonymous loaded (1 entries)
12:28:59 [plugin.menu] script:action_anonymous_entry loaded (1 entries)
12:28:59 [plugin.menu] script:action_anticallcenter loaded (1 entries)
12:28:59 [plugin.menu] script:action_ctrl5 loaded (1 entries)
12:28:59 [plugin.menu] script:action_wrapper loaded (1 entries)
12:28:59 [plugin.menu] script:am_admin loaded (1 entries)
12:28:59 [plugin.menu] script:am_setup loaded (1 entries)
12:28:59 [plugin.menu] script:callthrough loaded (1 entries)
12:28:59 [plugin.menu] script:misc_checkmaild loaded (1 entries)
12:28:59 [plugin.menu] script:misc_fb loaded (1 entries)
12:28:59 [plugin.menu] script:misc_radio loaded (1 entries)
12:28:59 [plugin.menu] script:misc_weather loaded (1 entries)
12:28:59 [plugin.menu] 32 entries loaded!
12:28:59 [plugin.menu] Initialized!
12:28:59 #1 - Plugin "libmenu.plugin.so" loaded!
12:28:59 (0x3ff) - Listen to CAPI controller 1 ...
12:28:59 (0x3ff) - Listen to CAPI controller 4 ...
12:28:59 (0x3ff) - Listen to CAPI controller 3 ...
12:28:59 (0x3ff) - Listen to CAPI controller 5 ...
12:28:59 Start CAPI listen loop ...
12:28:59 Start VoIP listen loop ...
12:28:59 [ctrl=1] CNF: CAPI_LISTEN
12:28:59 [ctrl=4] CNF: CAPI_LISTEN
12:28:59 [ctrl=3] CNF: CAPI_LISTEN
12:28:59 [ctrl=5] CNF: CAPI_LISTEN
12:28:59 Set low priority
12:29:23 connection_by_free - Connection: 0
12:29:23 [type=capi/inc conid=0 accid=1] (IND) CAPI_CONNECT
12:29:23 (IND) CAPI_INFO (0x0018) - CHANNEL IDENTIFICATION (0x03)
12:29:23 (IND) CAPI_INFO (0xc000) - UNKNOWN INFO
12:29:23 [ctrl=4, plci=260] CNF: CAPI_ALERT
12:29:23 [plugin.menu] Action: script:action_wrapper (acc=1 con=0)
12:29:23 [plugin.menu] Script: /var/dtmfbox/script/action.sh(/var/dtmfbox/scrip
t/action.sh, "CONNECT", "CAPI", "INCOMING", "0", "-1", "unknown", "anonymous", "
1", "", "") (acc=1 con=0)
12:29:23 [plugin.menu] Action: script:action_anonymous_entry (acc=1 con=0)
12:29:23 [plugin.menu] Script: /var/dtmfbox/script/action_anonymous.sh(/var/dtm
fbox/script/action_anonymous.sh, "CONNECT", "CAPI", "INCOMING", "0", "-1", "unkn
own", "anonymous", "1", "", "ENTRY") (acc=1 con=0)
12:29:24 Set high priority
12:29:36 CAPI 0x3490 - Normal call clearing
12:29:36 [type=capi/inc conid=0 accid=1] (IND) CAPI_DISCONNECT
12:29:36 [plugin.menu] Action: script:action_wrapper (acc=1 con=0)
12:29:36 [plugin.menu] Script: /var/dtmfbox/script/action.sh(/var/dtmfbox/scrip
t/action.sh, "DISCONNECT", "CAPI", "INCOMING", "0", "-1", "unknown", "anonymous"
, "1", "", "13456") (acc=1 con=0)
12:29:36 Set low priority
Vielleicht ist noch von Interesse: Ich habe einen analogen Telefonanschluss + DSL.