Skip to content
Dennis edited this page Feb 12, 2015 · 2 revisions

DoorPi FAQ

DoorPi stops with error [sipphone.by_pjsua] dialtone is missing or not readable - create it now

delete the sound file and restart DoorPi


How do I start DoorPi as an application?

You can start DoorPi with the following command in your shell as an application: sudo /home/DoorPI/doorpi/main.py --configfile /home/DoorPI/conf/doorpi.cfg --trace No log-file will be written, you can read the log directly in the shell


Is there an status-file?

You can config a status-file in the droopy.cfg like:

[EVENT_OnTimeSecond] 10 = statusfile:/home/pi/doorpi/startup.log,last status: %Y-%m-%d %H-%M-%S

this will write a status-file every second containing the time of the last update. syntax for the action status-file: Action = statusfile [file-name] = /home/pi/doorpi/startup.log [message] = last status: %Y-%m-%d %H-%M-%S


Exception NameError: list index out of range

The GPIO pins are defined wrong. If you use a PiFace they are 0,1,2 and without you can read the GPIO pins here. Pay attention that you use the pin number and not the number of GPIO port!


[action.handler] error while fire action PjsipHandleEventsAction with args () and kwargs {'timeout': 50} for event_name OnTimeTick

This error occurs if you want to stop DoorPi, but you interrupt with your input pjsua. It's not bad. It will restart after some seconds.