So. Danke an Alle.
Das war die Lösung...
https://wiki.linphone.org/wiki/index.php/Raspberrypi:start
Ich bin das kopmlette Linphone Setup nochmal durchgegangen und jetzt klappt es. Danke.
So. Danke an Alle.
Das war die Lösung...
https://wiki.linphone.org/wiki/index.php/Raspberrypi:start
Ich bin das kopmlette Linphone Setup nochmal durchgegangen und jetzt klappt es. Danke.
Hallo Alex
Danke für deine rasche Antwort - das hilft mir allerdings nicht weiter. Ich hab da eher ein Problem, dass mir da irgendwas fehlt glaub ich.
linphone habe ich bereits mehrmals versucht zu installieren. Irgendwas passt da nicht...
Vielleicht hat ja hier jemand noch eine Idee...
Danke Euch allen für die Unterstützung.
lg
Wolfgang
Hallo Zusammen
Die ersten Steps mit "Sende push wenn Klingel gedrückt wird" habe ich bereits erfolgreich umgesetzt. Jetzt wollte ich einen SIPCALL auslösen.
Die Fritzbox mit der ELCOM App am iPhone funktioniert soweit und ich wollte nun linphone konfigurieren und einen Call auslösen.
Bitte um Eure Hilfe. Danke.
Leider bekomme ich beim Start von Doorpi nachdem ich linphone aktiviere folgende Fehler:
2016-11-26 05:35:08,165 [DEBUG] [doorpi.sipphone.from_linphone] [PYLINPHONE] <<< pylinphone_Core_class_method_new -> 0x74497500
2016-11-26 05:35:08,165 [DEBUG] [doorpi.conf.config_object] create new key identity in section SIP-Phone with value 'DoorPi'
2016-11-26 05:35:08,165 [TRACE] [doorpi.conf.config_object] get_string for key identity in section SIP-Phone (default: DoorPi) returns DoorPi
2016-11-26 05:35:08,166 [DEBUG] [doorpi.sipphone.from_linphone] [PYLINPHONE] >>> pylinphone_Core_set_primary_contact(0x74497500 [0x1d40900], "DoorPi <sip:doorpi@127.0.0.1>")
2016-11-26 05:35:08,166 [DEBUG] [doorpi.sipphone.from_linphone] [PYLINPHONE] <<< pylinphone_Core_set_primary_contact -> 0
2016-11-26 05:35:08,167 [TRACE] [doorpi.action.handler] fire Event OnSipPhoneCreate from doorpi.sipphone.from_linphone asyncron
2016-11-26 05:35:08,168 [TRACE] [doorpi.conf.config_object] get_integer for key ua.max_calls in section SIP-Phone (default: 2) returns 2
2016-11-26 05:35:08,168 [DEBUG] [doorpi.sipphone.from_linphone] [PYLINPHONE] >>> pylinphone_Core_set_max_calls(0x74497500 [0x1d40900], 2)
2016-11-26 05:35:08,169 [DEBUG] [doorpi.sipphone.from_linphone] [PYLINPHONE] <<< pylinphone_Core_set_max_calls -> 0
2016-11-26 05:35:08,169 [TRACE] [doorpi.conf.config_object] get_boolean for key echo_cancellation_enabled in section SIP-Phone (default: False) returns False
2016-11-26 05:35:08,170 [ERROR] [doorpi.main] Exception NameError: 'linphone.Core' object has no attribute 'echo_cancellation_enabled'
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/DoorPi-2.5.1-py2.7.egg/doorpi/main.py", line 152, in main_as_application
try: doorpi.DoorPi(parsed_arguments).run()
File "/usr/local/lib/python2.7/dist-packages/DoorPi-2.5.1-py2.7.egg/doorpi/doorpi.py", line 232, in run
if not self.__prepared: self.prepare(self.__parsed_arguments)
File "/usr/local/lib/python2.7/dist-packages/DoorPi-2.5.1-py2.7.egg/doorpi/doorpi.py", line 149, in prepare
self.sipphone.start()
File "/usr/local/lib/python2.7/dist-packages/DoorPi-2.5.1-py2.7.egg/doorpi/sipphone/from_linphone.py", line 175, in start
self.core.echo_cancellation_enabled = conf.get_bool(SIPPHONE_SECTION, 'echo_cancellation_enabled', False)
AttributeError: 'linphone.Core' object has no attribute 'echo_cancellation_enabled'
2016-11-26 05:35:08,171 [DEBUG] [doorpi.doorpi] destroy doorpi
2016-11-26 05:35:08,172 [DEBUG] [doorpi.doorpi] Threads before starting shutdown: [<_MainThread(MainThread, started 1995669504)>, <Thread(OnWebServerStart from doorpi.status.webserver, started 1982596192)>, <Thread(OnSipPhoneCreate from doorpi.sipphone.from_linphone, started 1940911200)>, <Thread(OnCallStart from doorpi.sipphone.linphone_lib.CallBacks, started 1950786656)>]
2016-11-26 05:35:08,172 [TRACE] [doorpi.action.handler] fire Event BeforeShutdown from doorpi.doorpi asyncron
Exception in thread OnWebServerStart from doorpi.status.webserver:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 763, in run
self.__target(*self.__args, **self.__kwargs)
File "/usr/local/lib/python2.7/dist-packages/DoorPi-2.5.1-py2.7.egg/doorpi/action/handler.py", line 251, in fire_event_synchron
if not silent: self.db.insert_event_log(event_fire_id, event_source, event_name, start_time, kwargs)
File "/usr/local/lib/python2.7/dist-packages/DoorPi-2.5.1-py2.7.egg/doorpi/action/handler.py", line 135, in insert_event_log
self.execute_sql(sql_statement)
File "/usr/local/lib/python2.7/dist-packages/DoorPi-2.5.1-py2.7.egg/doorpi/action/handler.py", line 121, in execute_sql
return self._db.execute(sql)
OperationalError: database is locked
Exception in thread OnCallStart from doorpi.sipphone.linphone_lib.CallBacks:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 763, in run
self.__target(*self.__args, **self.__kwargs)
File "/usr/local/lib/python2.7/dist-packages/DoorPi-2.5.1-py2.7.egg/doorpi/action/handler.py", line 251, in fire_event_synchron
if not silent: self.db.insert_event_log(event_fire_id, event_source, event_name, start_time, kwargs)
File "/usr/local/lib/python2.7/dist-packages/DoorPi-2.5.1-py2.7.egg/doorpi/action/handler.py", line 135, in insert_event_log
self.execute_sql(sql_statement)
File "/usr/local/lib/python2.7/dist-packages/DoorPi-2.5.1-py2.7.egg/doorpi/action/handler.py", line 121, in execute_sql
return self._db.execute(sql)
OperationalError: database is locked
Traceback (most recent call last):
File "/usr/local/bin/doorpi_cli", line 11, in <module>
load_entry_point('DoorPi==2.5.1', 'console_scripts', 'doorpi_cli')()
File "/usr/local/lib/python2.7/dist-packages/DoorPi-2.5.1-py2.7.egg/doorpi/main.py", line 169, in entry_point
raise SystemExit(main_as_application(sys.argv))
File "/usr/local/lib/python2.7/dist-packages/DoorPi-2.5.1-py2.7.egg/doorpi/main.py", line 155, in main_as_application
finally: doorpi.DoorPi().destroy()
File "/usr/local/lib/python2.7/dist-packages/DoorPi-2.5.1-py2.7.egg/doorpi/doorpi.py", line 205, in destroy
self.event_handler.fire_event_synchron('OnShutdown', __name__)
File "/usr/local/lib/python2.7/dist-packages/DoorPi-2.5.1-py2.7.egg/doorpi/action/handler.py", line 251, in fire_event_synchron
if not silent: self.db.insert_event_log(event_fire_id, event_source, event_name, start_time, kwargs)
File "/usr/local/lib/python2.7/dist-packages/DoorPi-2.5.1-py2.7.egg/doorpi/action/handler.py", line 135, in insert_event_log
self.execute_sql(sql_statement)
File "/usr/local/lib/python2.7/dist-packages/DoorPi-2.5.1-py2.7.egg/doorpi/action/handler.py", line 121, in execute_sql
return self._db.execute(sql)
sqlite3.OperationalError: database is locked
Exception in thread OnSipPhoneCreate from doorpi.sipphone.from_linphone:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 763, in run
self.__target(*self.__args, **self.__kwargs)
File "/usr/local/lib/python2.7/dist-packages/DoorPi-2.5.1-py2.7.egg/doorpi/action/handler.py", line 251, in fire_event_synchron
if not silent: self.db.insert_event_log(event_fire_id, event_source, event_name, start_time, kwargs)
File "/usr/local/lib/python2.7/dist-packages/DoorPi-2.5.1-py2.7.egg/doorpi/action/handler.py", line 135, in insert_event_log
self.execute_sql(sql_statement)
File "/usr/local/lib/python2.7/dist-packages/DoorPi-2.5.1-py2.7.egg/doorpi/action/handler.py", line 121, in execute_sql
return self._db.execute(sql)
OperationalError: database is locked
Exception in thread BeforeShutdown from doorpi.doorpi:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 763, in run
self.__target(*self.__args, **self.__kwargs)
File "/usr/local/lib/python2.7/dist-packages/DoorPi-2.5.1-py2.7.egg/doorpi/action/handler.py", line 251, in fire_event_synchron
if not silent: self.db.insert_event_log(event_fire_id, event_source, event_name, start_time, kwargs)
File "/usr/local/lib/python2.7/dist-packages/DoorPi-2.5.1-py2.7.egg/doorpi/action/handler.py", line 135, in insert_event_log
self.execute_sql(sql_statement)
File "/usr/local/lib/python2.7/dist-packages/DoorPi-2.5.1-py2.7.egg/doorpi/action/handler.py", line 121, in execute_sql
return self._db.execute(sql)
OperationalError: database is locked
Alles anzeigen
Und hier meine INI Datei:
[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]
firewallpolicy = PolicyNoFirewall
sipphonetyp = linphone
sipserver_server = 192.168.178.1
sipserver_username = 624
sipserver_password = gsrgrafe
sipserver_realm = fritz.box
[keyboards]
onboardpins = gpio
[onboardpins_keyboard]
mode = bcm
bouncetime = 200
[onboardpins_InputPins]
27 = sleep:0.1
[EVENT_OnKeyUp_onboardpins.27]
10 = os_execute:/home/pi/sendPush.sh
Alles anzeigen
Mit dieser doorpi.ini hat es dann geklappt...
[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 = dummy
[keyboards]
onboardpins = gpio
[onboardpins_keyboard]
mode = bcm
bouncetime = 200
[onboardpins_InputPins]
27 = sleep:0.1
[EVENT_OnKeyUp_onboardpins.27]
10 = os_execute:/home/pi/sendPush.sh
Alles anzeigen
Hallo Zusammen
Bin da relativ neu in dem Thema, allerdings versuche ich gerade per Knopfdruck einen Push Message auszulösen. Das wird mal mein erster Test sein.
d.h. GPIO 27 mit OnKeyPressed löst ein Event aus.
Leider bekomme ich beim Start aufgrund meiner doorpi.ini mit mode=bcm folgende Fehlermeldung...
Bitte um eure Hilfe
lg
Wolfgang
2016-11-26 00:39:25,530 [ERROR] [doorpi.keyboard.KeyboardInterface] keyboard mode not found @ keyboard.from_bcm (msg: No module named from_bcm)
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/DoorPi-2.5.1-py2.7.egg/doorpi/keyboard/KeyboardInterface.py", line 42, in load_single_keyboard
keyboard = importlib.import_module('doorpi.keyboard.from_'+keyboard_type).get(
File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
ImportError: No module named from_bcm
2016-11-26 00:39:25,531 [ERROR] [doorpi.keyboard.KeyboardInterface] couldn't load keyboard mode
2016-11-26 00:39:25,531 [INFO] [doorpi.keyboard.KeyboardInterface] trying to add keyboard 'onboardpins' to handler
meine Doorpi.ini
[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 = dummy
[keyboards]
onboardpins = gpio
mode = bcm
[EVENT_OnKeyPressed_onboardpins.27]
10 = os_execute:/home/pi/sendPush.sh
Alles anzeigen