linphone-developers
[Top][All Lists]
Advanced

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

[Linphone-developers] Problems with linphonecsh in bash script


From: Dmitry
Subject: [Linphone-developers] Problems with linphonecsh in bash script
Date: Sun, 4 Mar 2012 22:04:08 -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

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]