Korrektur
Spalte $5 war korrekt. Nur wenn der User es ausführt, muss es $6 sein. Im Autostart ist es vollkommen inordnung so.
This commit is contained in:
parent
32ff08dc0e
commit
36d385b455
2
run.py
2
run.py
|
@ -88,7 +88,7 @@ def CALL():
|
|||
if FORK == 1:
|
||||
FORK = GPIO.input(PinForkIn)
|
||||
time.sleep(0.0001)
|
||||
RINGCHECK = 'linphonecsh generic \'calls\' | sed -n 4p | awk \'{print $6}\''
|
||||
RINGCHECK = 'linphonecsh generic \'calls\' | sed -n 4p | awk \'{print $5}\''
|
||||
RINGVALUE = subprocess.check_output(['bash', '-c', RINGCHECK ]).decode().strip()
|
||||
if RINGVALUE == 'IncomingReceived':
|
||||
wecker()
|
||||
|
|
Loading…
Reference in a new issue