linphone-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Linphone-users] problem using linphonecsh from scripts


From: Dmitry
Subject: [Linphone-users] problem using linphonecsh from scripts
Date: Sat, 3 Mar 2012 20:31:53 -0800 (PST)

Hi, List

My problem is when I use linphonecsh in Bash script - I get "ERROR: Failed to connect pipe: Connection refused"
the script is:
#!/bin/bash
if [ ! "$(pidof linphonec)" ]; then
        linphonecsh init
        linphonecsh register --host somehost.ru --username 123456 --password 123456
        linphonecsh status register
else
        linphonecsh 'exit'
fi
exit 0

Here is the output:
++ pidof linphonec
+ '[' '!' '' ']'
+ linphonecsh init
+ linphonecsh register --host somehost.ru --username 123456 --password 123456
ERROR: Failed to connect pipe: Connection refused
+ linphonecsh status register
ERROR: Failed to connect pipe: Connection refused
+ exit 0

I do it as ROOT
-rwxr-xr-x 1 root root 9,1K Фев 29 16:56 /usr/bin/linphonecsh

But when I issue the linphonecsh commands in a shell - there are no problems (i.e I can register and make calls).

Can anyone give me a hint how to solve this problem?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]