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:
Code
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:
Code
[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