Hallo,
in der letzten Zeit ist es schon einige Male vorgekommen, daß bei betätigen des Klingeltasters die doorpi ein Dauerklingeln ativiert hat. Bisher wusste ich mir nur zu helfen, indem ich ein reboot vorgenommen habe. Ein solches Dauerklingeln in Abwesenheit wäre fatal!
Hat jemand eine Idee, wie man das abstellen kann?
Vielleicht auch mit einem skript überprüfen, ob die Klingel aktiv ist?
Für Vorschläge wäre ich dankbar.
Beiträge von schartei
-
-
-
Hallo,
habe das Problem selbst gelöst.
Das entscheidende war die installation von Linphone, hier kommt es auf die Version an.
Mit der Version 3.8.0 klappt es nicht. Die Version 3.9.0 version of Linphone python for Raspberry funktioniert dann.
Damit ging der Ruf an die Nebenstelle 3000 bei betätigen des Klingeltasters dann raus.
Mein doorpi.ini sieht nun so aus:
[DoorPi]
base_path = /usr/local/etc/DoorPi
eventlog = !BASEPATH!/conf/eventlog.db
is_alive_led =
last_snapshot =[DoorPiWeb]
indexfile = index.html
ip =
loginfile = login.html
online_fallback = http://motom001.github.io/DoorPiWeb
port = 80
public = AREA_public
www = !BASEPATH!/../DoorPiWeb[EVENT_OnStartup]
10 = sleep:1[SIP-Phone]
sipphonetyp = linphone
username = 3000password = PASSWORT
realm = 192.168.178.32
server = 192.168.178.32
;sipseerver_stunserver = 192.168.178.32
;local_port = 5061[AdminNumbers]
3000 = active
2000 = active
1000 = active[keyboards]
onboardpins = piface[onboardpins_keyboard]
bouncetime = 200[onboardpins_InputPins]
0 = call:3000 -
Hallo,
habe Doorpi erfolgreich auf eim raspi installiert. Auf einem weiteren raspi läuft asterisk. Mit einem softphone X-Lite kann ich telefonieren.
Betätige ich allerdings den Klingeltaster, dann kommt kein Ruf vom Doorpi.
Trace vom Doorpi:
2016-11-11 16:37:14,668 [DEBUG] [doorpi.action.handler] [YTFBBE] fire for event OnKeyPressed_onboardpins.11 this actions [<doorpi.action.SingleActions.call.CallAction instance at 0xb46fbad0>]
2016-11-11 16:37:14,673 [TRACE] [doorpi.action.handler] [YTFBBE] try to fire action CallAction with args () and kwargs {'number': '3000'}
2016-11-11 16:37:14,676 [TRACE] [doorpi.action.base] run CallAction with args () and kwargs {'number': '3000'}
2016-11-11 16:37:14,679 [TRACE] [doorpi.action.handler] fire Event BeforeSipPhoneMakeCall from doorpi.sipphone.from_linphone asyncron
2016-11-11 16:37:14,684 [DEBUG] [doorpi.sipphone.from_linphone] call (3000)
2016-11-11 16:37:14,688 [DEBUG] [doorpi.sipphone.from_linphone] no current call -> start new call
2016-11-11 16:37:14,692 [DEBUG] [doorpi.action.handler] no actions for event BeforeSipPhoneMakeCall - skip fire_event BeforeSipPhoneMakeCall from doorpi.sipphone.from_linphone
2016-11-11 16:37:14,694 [DEBUG] [doorpi.sipphone.from_linphone] reset current call start datetime to 2016-11-11 15:37:14.693904
2016-11-11 16:37:14,701 [DEBUG] [doorpi.sipphone.from_linphone] [PYLINPHONE] >>> pylinphone_Core_instance_method_create_call_params(0xb46e05d8 [0x215c320], 0x2d7824 [(nil)])
2016-11-11 16:37:14,705 [DEBUG] [doorpi.sipphone.from_linphone] [PYLINPHONE] >>> pylinphone_CallParams_from_native_ptr(0xb3d02460)
2016-11-11 16:37:14,708 [DEBUG] [doorpi.sipphone.from_linphone] [PYLINPHONE] >>> pylinphone_CallParams_new()
2016-11-11 16:37:14,711 [DEBUG] [doorpi.sipphone.from_linphone] [PYLINPHONE] <<< pylinphone_CallParams_new -> 0xb6cbb910
2016-11-11 16:37:14,714 [DEBUG] [doorpi.sipphone.from_linphone] [PYLINPHONE] >>> pylinphone_CallParams_init()
2016-11-11 16:37:14,718 [DEBUG] [doorpi.sipphone.from_linphone] [PYLINPHONE] <<< pylinphone_CallParams_init -> 0xb6cbb910
2016-11-11 16:37:14,721 [DEBUG] [doorpi.sipphone.from_linphone] [PYLINPHONE] <<< pylinphone_CallParams_from_native_ptr -> 0xb6cbb910
2016-11-11 16:37:14,726 [DEBUG] [doorpi.sipphone.from_linphone] [PYLINPHONE] <<< pylinphone_Core_instance_method_create_call_params -> 0xb6cbb910
2016-11-11 16:37:14,734 [DEBUG] [doorpi.sipphone.from_linphone] [PYLINPHONE] >>> pylinphone_CallParams_set_record_file(0xb6cbb910 [0xb3d02460], "/usr/local/etc/DoorPi/records/2016-11-11_16-37-14.wav")
2016-11-11 16:37:14,737 [DEBUG] [doorpi.sipphone.from_linphone] [PYLINPHONE] <<< pylinphone_CallParams_set_record_file -> 0
2016-11-11 16:37:14,740 [DEBUG] [doorpi.sipphone.from_linphone] [PYLINPHONE] >>> pylinphone_CallParams_enable_video(0xb6cbb910 [0xb3d02460], 0x2e0620 [1])
2016-11-11 16:37:14,744 [DEBUG] [doorpi.sipphone.from_linphone] [PYLINPHONE] <<< pylinphone_CallParams_enable_video -> 0
2016-11-11 16:37:14,747 [DEBUG] [doorpi.sipphone.from_linphone] [PYLINPHONE] >>> pylinphone_Core_instance_method_invite_with_params(0xb46e05d8 [0x215c320], "3000", 0xb6cbb910 [0xb3d02460])
2016-11-11 16:37:14,750 [DEBUG] [doorpi.sipphone.from_linphone] [PYLINPHONE] <<< pylinphone_Core_instance_method_invite_with_params -> 0x2d7824
2016-11-11 16:37:14,754 [DEBUG] [doorpi.action.handler] request event logs count with filter OnSipPhoneMakeCallFailed
2016-11-11 16:37:14,759 [TRACE] [doorpi.action.handler] fire Event OnSipPhoneMakeCallFailed from doorpi.sipphone.from_linphone asyncron
2016-11-11 16:37:14,765 [TRACE] [doorpi.action.handler] [YTFBBE] finished fire_event for event_name OnKeyPressed_onboardpins.11
2016-11-11 16:37:14,770 [DEBUG] [doorpi.action.handler] no actions for event OnSipPhoneMakeCallFailed - skip fire_event OnSipPhoneMakeCallFailed from doorpi.sipphone.from_linphonedoorpi.ini:
#log.level = 5
#log.console_level = 5
sipserver_username = 3000
sipserver_password = PASSWORT
sipserver_realm = 192.168.178.32
sipserver_server = 192.168.178.32
;local_port = 5061[AdminNumbers]
1000 = active[keyboards]
onboardpins = gpio[onboardpins_keyboard]
bouncetime = 200[onboardpins_InputPins]
11 = call:3000Vielleicht kann mir jemand helfen, ich weiß nicht weiter!