You are not logged in.

#1 2016-09-11 20:21:06

felixita
Member
From: Venezia
Registered: 2016-02-02
Posts: 32

Linphone, no more start when called from systemctl

Hy, i would like ask you a questions about a problem that i have with linphonecsh: i've write a script to check if my video-surveillance detect a motion (zoneminder). The script have to start a daemon which control another script, called sencall, that make a call to my phone:

when my script find images motion, will start deamon:

systemctl start sendcall.service

sendcall.service deamon content:

[Unit]
Description = Send a call

[Service]
ExecStart=/usr/local/bin/sendcall
TimeoutStopSec=1

[Install]
WantedBy=multi-user.target

sendcall script content:

#!/bin/bash
linphonecsh init -c /root/.linphonerc -s sip:+39333xxxxxx@sip.messagenet.it

echo "make a call and wait 45 seconds before exit"
sleep 45        

linphonecsh exit

Up to 5-6 days ago everything worked fine, but now, maybe after an Arch update, when start deamon sendcall.service fails:

 
journalctl -xe look: set 11 21:32:57 arch-imac sendcall[16678]: ERROR: Failed to connect pipe: Connection refused 

But if i start the script sencall from terminal:

# /usr/local/bin/sendcall

the script work fine and the call start.

Why now deamons don't start the script sendcall?

Thank's at all...

Offline

#2 2016-09-12 13:26:40

felixita
Member
From: Venezia
Registered: 2016-02-02
Posts: 32

Re: Linphone, no more start when called from systemctl

nobody can help me? maybe have choose wrong forum section?

Offline

Board footer

Powered by FluxBB